aboutsummaryrefslogtreecommitdiffstats
path: root/src/crypto
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2012-07-25 23:11:44 -0700
committerBrian Carlstrom <bdc@google.com>2012-07-25 23:11:44 -0700
commit27bf1073abe534644cc1146397082cc78873f516 (patch)
tree777cdac1a1a7d6c27a84542f6962e617e1ee3c06 /src/crypto
parent175de9376493bb3d4f4ac07dd928716277f09de5 (diff)
downloadexternal_wpa_supplicant_8-27bf1073abe534644cc1146397082cc78873f516.zip
external_wpa_supplicant_8-27bf1073abe534644cc1146397082cc78873f516.tar.gz
external_wpa_supplicant_8-27bf1073abe534644cc1146397082cc78873f516.tar.bz2
Use SSL_OP_NO_TLSv1_1 SSL_OP_NO_TLSv1_2 SSL_OP_NO_TICKET for better wpa_supplicant_8 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: Ib53326cc8cd40e800454b7b92586c052bc910ba8
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/tls_openssl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/crypto/tls_openssl.c b/src/crypto/tls_openssl.c
index aaa920b..be94e8a 100644
--- a/src/crypto/tls_openssl.c
+++ b/src/crypto/tls_openssl.c
@@ -929,6 +929,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());