]> git.ipfire.org Git - thirdparty/curl.git/commit
openssl: remove conn->data use
authorDaniel Stenberg <daniel@haxx.se>
Mon, 25 Jan 2021 13:18:31 +0000 (14:18 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 15 Feb 2021 08:08:59 +0000 (09:08 +0100)
commitf2f91ac709bcfc85ce0447c3ab6b7e41efef8606
treeafe10807d54179b41ed83e02e589d5c5cbedfec8
parentfa959e697bf90e27738041d87e409b9b1edef3ac
openssl: remove conn->data use

We still make the trace callback function get the connectdata struct
passed to it, since the callback is anchored on the connection.

Repeatedly updating the callback pointer to set 'data' with
SSL_CTX_set_msg_callback_arg() doesn't seem to work, probably because
there might already be messages in the queue with the old pointer.

This code therefore makes sure to set the "logger" handle before using
OpenSSL calls so that the right easy handle gets used for tracing.

Closes #6522
lib/vtls/openssl.c