From 85cb68064f0dbda5b0f9fd114c7c3eb0e727fa17 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 9 Mar 2025 15:12:18 +0000 Subject: Support OPENSSL_NO_FILENAMES Some people are concerned that leaking a user name is a privacy issue. Allow disabling the __FILE__ and __LINE__ argument in the error stack to avoid this. This can be improved a bit in tree. From Viktor Szakats in https://github.com/libressl/portable/issues/761 ok bcook jsing --- src/lib/libssl/d1_both.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libssl/d1_both.c') diff --git a/src/lib/libssl/d1_both.c b/src/lib/libssl/d1_both.c index b5c68a1735..e144d8f533 100644 --- a/src/lib/libssl/d1_both.c +++ b/src/lib/libssl/d1_both.c @@ -1,4 +1,4 @@ -/* $OpenBSD: d1_both.c,v 1.84 2022/12/26 07:31:44 jmc Exp $ */ +/* $OpenBSD: d1_both.c,v 1.85 2025/03/09 15:12:18 tb Exp $ */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. @@ -868,7 +868,7 @@ dtls1_read_failed(SSL *s, int code) if (code > 0) { #ifdef DEBUG fprintf(stderr, "invalid state reached %s:%d", - __FILE__, __LINE__); + OPENSSL_FILE, OPENSSL_LINE); #endif return 1; } -- cgit v1.2.3-55-g6feb