]> granicus.if.org Git - curl/commitdiff
polarssl: show cipher suite name correctly with 1.1.0
authorDaniel Stenberg <daniel@haxx.se>
Wed, 18 Jan 2012 22:19:37 +0000 (23:19 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 18 Jan 2012 22:19:37 +0000 (23:19 +0100)
Apparently ssl_get_ciphersuite() is needed to get the name of the used
cipher suite.

lib/polarssl.c

index 07c0bf43639b1ca28a18ceaa698e3a0515e2193c..f24c7839b05002569bf9987c3f7ae3ab3067dda2 100644 (file)
@@ -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);