I'm currently using curl commit cfc6d46 2014-02-04 with OpenSSL 1.0.2 x86 on Windows 7 x64 in configuration 'DLL Debug - DLL OpenSSL'. When I enable verbose output in the curl tool I get a lot of '* SSLv2, Unknown (2x)' during the handshake and once or twice after. For example:
curl -v https://ssllabs.com
- SSLv2, Unknown (22):
- TLSv1.2, TLS handshake, Server hello (2):
- SSLv2, Unknown (22):
- TLSv1.2, TLS handshake, CERT (11):
- SSLv2, Unknown (22):
- TLSv1.2, TLS handshake, Server key exchange (12):
- SSLv2, Unknown (22):
- TLSv1.2, TLS handshake, Server finished (14):
- SSLv2, Unknown (22):
- TLSv1.2, TLS handshake, Client key exchange (16):
- SSLv2, Unknown (20):
- TLSv1.2, TLS change cipher, Client hello (1):
- SSLv2, Unknown (22):
- TLSv1.2, TLS handshake, Finished (20):
- SSLv2, Unknown (20):
- TLSv1.2, TLS change cipher, Client hello (1):
- SSLv2, Unknown (22):
- TLSv1.2, TLS handshake, Finished (20):
- SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
Same but using OpenSSL 1.0.1j:
- TLSv1.2, TLS handshake, Server hello (2):
- TLSv1.2, TLS handshake, CERT (11):
- TLSv1.2, TLS handshake, Server key exchange (12):
- TLSv1.2, TLS handshake, Server finished (14):
- TLSv1.2, TLS handshake, Client key exchange (16):
- TLSv1.2, TLS change cipher, Client hello (1):
- TLSv1.2, TLS handshake, Finished (20):
- TLSv1.2, TLS change cipher, Client hello (1):
- TLSv1.2, TLS handshake, Finished (20):
- SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
I looked in openssl.c at ssl_tls_trace which makes the output and is a callback function passed to OpenSSL's SSL_CTX_callback_ctrl, but there's nothing on that:
https://www.openssl.org/docs/ssl/SSL_callback_ctrl.html
Able to reproduce it on FreeBSD 10.1-RELEASE (amd64) with curl-7.41.0, and openssl-1.0.2:
Can you please re-resubmit this problem in the new bug tracker we've moving to? We're closing this down and I would like to get all "active" bugs moved over and yet I don't have any way to do it automatically.
You can still link to this bug report as it won't vanish, we'll just focus all activities going forward on the new one.
The new bug tracker: https://github.com/bagder/curl/issues
Now being tracked here: https://github.com/bagder/curl/issues/219
Thanks!