From 9dcad79795a74b1fe7ecb001f9f65f940cfd4848 Mon Sep 17 00:00:00 2001 From: Hugo Landau Date: Mon, 22 Jan 2024 14:41:32 +0000 Subject: QUIC QLOG: Rename QFILTER to OSSL_QFILTER Reviewed-by: Matt Caswell Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/22037) --- ssl/quic/qlog.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ssl/quic') diff --git a/ssl/quic/qlog.c b/ssl/quic/qlog.c index f374d0c8c7..6cf89e3554 100644 --- a/ssl/quic/qlog.c +++ b/ssl/quic/qlog.c @@ -98,7 +98,7 @@ QLOG *ossl_qlog_new_from_env(const QLOG_TRACE_INFO *info) { QLOG *qlog = NULL; const char *qlogdir = ossl_safe_getenv("QLOGDIR"); - const char *qfilter = ossl_safe_getenv("QFILTER"); + const char *qfilter = ossl_safe_getenv("OSSL_QFILTER"); char qlogdir_sep, *filename = NULL; size_t i, l, strl; @@ -134,7 +134,10 @@ QLOG *ossl_qlog_new_from_env(const QLOG_TRACE_INFO *info) if (!ossl_qlog_set_sink_filename(qlog, filename)) goto err; - if (qfilter != NULL && !ossl_qlog_set_filter(qlog, qfilter)) + if (qfilter == NULL) + qfilter = "*"; + + if (!ossl_qlog_set_filter(qlog, qfilter)) goto err; OPENSSL_free(filename); -- cgit v1.2.3