summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-01-14 11:36:29 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-01-14 11:36:29 +0100
commit5f250d0e7bdb49675a4e9f74efa0b0965ac2dc71 (patch)
treedbf1f3f0747c05d690465e3ae89ab4354b0f2516
parentdc7108d446db04d937199a1628d1ce435985576f (diff)
downloadcurl-bagder/openssl-sslkeylogfile.tar.gz
openssl: fix SSLKEYLOGFILE build error for BoringSSLbagder/openssl-sslkeylogfile
-rw-r--r--lib/vtls/openssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 5250a3d5f..ca556810a 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -2410,8 +2410,8 @@ static CURLcode ossl_connect_step1(struct connectdata *conn, int sockindex)
/* Enable logging of secrets to the file specified in env SSLKEYLOGFILE. */
#if defined(ENABLE_SSLKEYLOGFILE) && defined(HAVE_KEYLOG_CALLBACK)
- if(keylog_file) {
- SSL_CTX_set_keylog_callback(connssl->ctx, ossl_keylog_callback);
+ if(keylog_file_fp) {
+ SSL_CTX_set_keylog_callback(BACKEND->ctx, ossl_keylog_callback);
}
#endif