From: Petr Špaček Date: Tue, 22 Oct 2019 10:03:30 +0000 (+0200) Subject: doh debug: rename SSLKEYLOG environment variable to OPENSSLKEYLOG X-Git-Tag: v4.3.0~8^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6926ff481b7d662f7100c3cc4d0f5aaecc8633b4;p=thirdparty%2Fknot-resolver.git doh debug: rename SSLKEYLOG environment variable to OPENSSLKEYLOG This avoids conflict between GnuTLS's built-in SSLKEYLOG and our hack for OpenSSL. This would be important for instances which run DNS-over-TLS using built-in GnuTLS and at the same time DNS-over-HTTPS using lua-http (based on OpenSSL). --- diff --git a/modules/http/debug/sslkeylog.c b/modules/http/debug/sslkeylog.c index 370668907..9ab0426be 100644 --- a/modules/http/debug/sslkeylog.c +++ b/modules/http/debug/sslkeylog.c @@ -107,7 +107,7 @@ static void init_keylog_file(void) if (keylog_file_fd >= 0) return; - const char *filename = getenv("SSLKEYLOGFILE"); + const char *filename = getenv("OPENSSLKEYLOGFILE"); if (filename) { keylog_file_fd = open(filename, O_WRONLY | O_APPEND | O_CREAT, 0644); if (keylog_file_fd >= 0 && lseek(keylog_file_fd, 0, SEEK_END) == 0) {