diff options
author | Eduardo Chappa <chappa@washington.edu> | 2019-02-28 18:39:52 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2019-02-28 18:39:52 -0700 |
commit | 0707eb6d0053079b4f91849bba2f8b6fc97391e8 (patch) | |
tree | 1b89e32d21156aa9416dc41571758d74aa02e6e9 /imap/src/osdep | |
parent | 46e4b42ea25fb3dc4e0f3f6da5fa581abec45e8b (diff) | |
download | alpine-0707eb6d0053079b4f91849bba2f8b6fc97391e8.tar.xz |
* Clean up some code in the ssl_unix module. It adds to the last
modifications in the ssl_unix module.
Diffstat (limited to 'imap/src/osdep')
-rw-r--r-- | imap/src/osdep/unix/ssl_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/imap/src/osdep/unix/ssl_unix.c b/imap/src/osdep/unix/ssl_unix.c index 11454cbd..05eabce3 100644 --- a/imap/src/osdep/unix/ssl_unix.c +++ b/imap/src/osdep/unix/ssl_unix.c @@ -1,4 +1,5 @@ /* ======================================================================== + * Copyright 2019 Eduardo Chappa * Copyright 2008-2009 Mark Crispin * ======================================================================== */ @@ -222,7 +223,6 @@ int ssl_disable_mask(int ssl_version, int direction) */ const SSL_METHOD *ssl_connect_mthd(int flag, int *min, int *max) { - char tmp[10000]; int client_request; client_request = (flag & NET_TRYTLS1) ? TLS1_VERSION : (flag & NET_TRYTLS1_1) ? TLS1_1_VERSION @@ -250,7 +250,7 @@ const SSL_METHOD *ssl_connect_mthd(int flag, int *min, int *max) #ifndef OPENSSL_1_1_0 if(client_request == SSL3_VERSION) return SSLv3_client_method(); - if(client_request == TLS1_VERSION) + else if(client_request == TLS1_VERSION) return TLSv1_client_method(); else if(client_request == TLS1_1_VERSION) return TLSv1_1_client_method(); |