aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2012-01-18 23:19:37 +0100
committerDaniel Stenberg <daniel@haxx.se>2012-01-18 23:19:37 +0100
commitd1becc3231ae570be19858491c5c9f2fe48c1fd7 (patch)
tree533e1412766a0a9b382b2b13069d495208aee342 /lib
parentf55f95d49ce2d18beb519b0befbf4710d66cf51d (diff)
polarssl: show cipher suite name correctly with 1.1.0
Apparently ssl_get_ciphersuite() is needed to get the name of the used cipher suite.
Diffstat (limited to 'lib')
-rw-r--r--lib/polarssl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/polarssl.c b/lib/polarssl.c
index 07c0bf436..f24c7839b 100644
--- a/lib/polarssl.c
+++ b/lib/polarssl.c
@@ -276,10 +276,13 @@ Curl_polarssl_connect(struct connectdata *conn,
infof(data, "PolarSSL: Handshake complete, cipher is %s\n",
#if POLARSSL_VERSION_NUMBER<0x01000000
- ssl_get_cipher(&conn->ssl[sockindex].ssl));
+ ssl_get_cipher(&conn->ssl[sockindex].ssl)
+#elif POLARSSL_VERSION_NUMBER >= 0x01010000
+ ssl_get_ciphersuite(&conn->ssl[sockindex].ssl)
#else
- ssl_get_ciphersuite_name(&conn->ssl[sockindex].ssl));
+ ssl_get_ciphersuite_name(&conn->ssl[sockindex].ssl)
#endif
+ );
ret = ssl_get_verify_result(&conn->ssl[sockindex].ssl);