]> granicus.if.org Git - curl/commit
openssl: skip trace outputs for ssl_ver == 0
authorDaniel Stenberg <daniel@haxx.se>
Mon, 4 May 2015 10:27:59 +0000 (12:27 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 4 May 2015 10:27:59 +0000 (12:27 +0200)
commit690317aae21d2b081040dea5405708d1e2d76627
tree1cb01ce0fbd265e20a1ddf0f5806576e2bda6110
parent3c104448d6c0b4b8d35263c5ec77e8386393fdff
openssl: skip trace outputs for ssl_ver == 0

The OpenSSL trace callback is wonderfully undocumented but given a
journey in the source code, it seems the cases were ssl_ver is zero
doesn't follow the same pattern and thus turned out confusing and
misleading. For now, we skip doing any CURLINFO_TEXT logging on those
but keep sending them as CURLINFO_SSL_DATA_OUT/IN.

Also, I added direction to the text info and I edited some functions
slightly.

Bug: https://github.com/bagder/curl/issues/219
Reported-by: Jay Satiro, Ashish Shukla
lib/vtls/openssl.c