summaryrefslogtreecommitdiff
path: root/lib/vtls/cyassl.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2017-01-07 00:09:10 +0100
committerDan Fandrich <dan@coneharvesters.com>2017-01-07 00:09:10 +0100
commitba19feba945d6d4aec2688dd43895eb57625c635 (patch)
treead9f28a725c9e2418d77af765354b1f511f87003 /lib/vtls/cyassl.c
parentbbee0d4eee0335ed129c37063ea47e14be076e57 (diff)
downloadcurl-ba19feba945d6d4aec2688dd43895eb57625c635.tar.gz
wolfssl: display negotiated SSL version and cipher
Diffstat (limited to 'lib/vtls/cyassl.c')
-rw-r--r--lib/vtls/cyassl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/vtls/cyassl.c b/lib/vtls/cyassl.c
index f494a011d..705bb18c2 100644
--- a/lib/vtls/cyassl.c
+++ b/lib/vtls/cyassl.c
@@ -591,7 +591,13 @@ cyassl_connect_step2(struct connectdata *conn,
#endif /* HAVE_ALPN */
conssl->connecting_state = ssl_connect_3;
+#if (LIBCYASSL_VERSION_HEX >= 0x03009010)
+ infof(data, "SSL connection using %s / %s\n",
+ wolfSSL_get_version(conssl->handle),
+ wolfSSL_get_cipher_name(conssl->handle));
+#else
infof(data, "SSL connected\n");
+#endif
return CURLE_OK;
}