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/libcrypto/arch/hppa/opensslconf.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/lib/libcrypto/arch/hppa/opensslconf.h') diff --git a/src/lib/libcrypto/arch/hppa/opensslconf.h b/src/lib/libcrypto/arch/hppa/opensslconf.h index 98dcfee3a1..a5d26b6fdc 100644 --- a/src/lib/libcrypto/arch/hppa/opensslconf.h +++ b/src/lib/libcrypto/arch/hppa/opensslconf.h @@ -7,6 +7,16 @@ #undef OPENSSL_EXPORT_VAR_AS_FUNCTION +#ifndef OPENSSL_FILE +#ifdef OPENSSL_NO_FILENAMES +#define OPENSSL_FILE "" +#define OPENSSL_LINE 0 +#else +#define OPENSSL_FILE __FILE__ +#define OPENSSL_LINE __LINE__ +#endif +#endif + #if defined(HEADER_IDEA_H) && !defined(IDEA_INT) #define IDEA_INT unsigned int #endif -- cgit v1.2.3-55-g6feb