diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-12-26 18:08:41 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-12-26 18:08:41 +0900 |
| commit | ff2a630efe317f3610f4ab91a59731f8971a50ee (patch) | |
| tree | 43e816ea9c030b80492adec0da79a250bc08af53 /src/LibgnutlsTLSSession.cc | |
| parent | d755df25057e6dbd33bb6fd92a7a65751d5e22e7 (diff) | |
GNUTLS: Remove ifdef for GNUTLS_TLS* since they are not macros
Since they are not macros, we get always TLS_PROTO_NONE (otherwise you
are using SSLv3 and you will get warning nonetheless) and get warning.
Diffstat (limited to 'src/LibgnutlsTLSSession.cc')
| -rw-r--r-- | src/LibgnutlsTLSSession.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/LibgnutlsTLSSession.cc b/src/LibgnutlsTLSSession.cc index 273d82b2..7fad8b98 100644 --- a/src/LibgnutlsTLSSession.cc +++ b/src/LibgnutlsTLSSession.cc @@ -48,27 +48,14 @@ TLSVersion getProtocolFromSession(gnutls_session_t& session) { switch(proto) { case GNUTLS_SSL3: return TLS_PROTO_SSL3; - -#ifdef GNUTLS_TLS1_0 case GNUTLS_TLS1_0: return TLS_PROTO_TLS10; -#endif // GNUTLS_TLS1_0 - -#ifdef GNUTLS_TLS1_1 case GNUTLS_TLS1_1: return TLS_PROTO_TLS11; - break; -#endif // GNUTLS_TLS1_1 - -#ifdef GNUTLS_TLS1_2 case GNUTLS_TLS1_2: return TLS_PROTO_TLS12; - break; -#endif // GNUTLS_TLS1_2 - default: return TLS_PROTO_NONE; - break; } } } // namespace |
