commit | 617450fed233b4b17a8a7c7b9f60ecabc513df21 | [log] [tgz] |
---|---|---|
author | Brian Carlstrom <bdc@google.com> | Wed Jul 25 23:17:29 2012 -0700 |
committer | Brian Carlstrom <bdc@google.com> | Wed Jul 25 23:17:29 2012 -0700 |
tree | ecc3e2d0015a86a51d787044defb13b885d21965 | |
parent | 872e7db64eb4ac56040dcefea5b1bfa8f68253aa [diff] |
Use SSL_OP_NO_TLSv1_1 SSL_OP_NO_TLSv1_2 SSL_OP_NO_TICKET for better wpa_supplicant_6 interoperability Bug: https://bugs.launchpad.net/ubuntu/+source/wpasupplicant/+bug/969343/comments/72 Bug: http://w1.fi/bugz/show_bug.cgi?id=447#c7 Bug: http://code.google.com/p/android/issues/detail?id=34212 Bug: 6883259 Change-Id: I867c5b1b7d98cf70876d76868d3cea0e71d91623
diff --git a/wpa_supplicant/src/crypto/tls_openssl.c b/wpa_supplicant/src/crypto/tls_openssl.c index 3d468ec..70fe79c 100644 --- a/wpa_supplicant/src/crypto/tls_openssl.c +++ b/wpa_supplicant/src/crypto/tls_openssl.c
@@ -887,6 +887,11 @@ #ifdef SSL_OP_NO_COMPRESSION options |= SSL_OP_NO_COMPRESSION; #endif /* SSL_OP_NO_COMPRESSION */ +#ifdef ANDROID + options |= SSL_OP_NO_TLSv1_1; + options |= SSL_OP_NO_TLSv1_2; + options |= SSL_OP_NO_TICKET; +#endif /* ANDROID */ SSL_set_options(conn->ssl, options); conn->ssl_in = BIO_new(BIO_s_mem());