aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2012-07-25 23:17:29 -0700
committerBrian Carlstrom <bdc@google.com>2012-07-25 23:17:29 -0700
commit617450fed233b4b17a8a7c7b9f60ecabc513df21 (patch)
treeecc3e2d0015a86a51d787044defb13b885d21965
parent872e7db64eb4ac56040dcefea5b1bfa8f68253aa (diff)
downloadwpa_supplicant_6-617450fed233b4b17a8a7c7b9f60ecabc513df21.tar.gz
Use SSL_OP_NO_TLSv1_1 SSL_OP_NO_TLSv1_2 SSL_OP_NO_TICKET for better wpa_supplicant_6 interoperabilityandroid-cts-4.1_r4android-cts-4.1_r2jb-dev
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
-rw-r--r--wpa_supplicant/src/crypto/tls_openssl.c5
1 files changed, 5 insertions, 0 deletions
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 @@ struct tls_connection * tls_connection_init(void *ssl_ctx)
#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());