Skip to content

Commit

Permalink
polarssl: show cipher suite name correctly with 1.1.0
Browse files Browse the repository at this point in the history
Apparently ssl_get_ciphersuite() is needed to get the name of the used
cipher suite.
  • Loading branch information
bagder committed Jan 18, 2012
1 parent f55f95d commit d1becc3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/polarssl.c
Expand Up @@ -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);

Expand Down

0 comments on commit d1becc3

Please sign in to comment.