summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/arch/i386/opensslconf.h
diff options
context:
space:
mode:
authortb <>2025-03-09 15:12:18 +0000
committertb <>2025-03-09 15:12:18 +0000
commit85cb68064f0dbda5b0f9fd114c7c3eb0e727fa17 (patch)
tree5b5e2ff7b9d13fcc95c0f5fe74f988c748ffd3c4 /src/lib/libcrypto/arch/i386/opensslconf.h
parent77bd8b3903f6a7c7c5714f242d8ce5654fc26538 (diff)
downloadopenbsd-85cb68064f0dbda5b0f9fd114c7c3eb0e727fa17.tar.gz
openbsd-85cb68064f0dbda5b0f9fd114c7c3eb0e727fa17.tar.bz2
openbsd-85cb68064f0dbda5b0f9fd114c7c3eb0e727fa17.zip
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
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/arch/i386/opensslconf.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/libcrypto/arch/i386/opensslconf.h b/src/lib/libcrypto/arch/i386/opensslconf.h
index 1ea367102b..03cf31b940 100644
--- a/src/lib/libcrypto/arch/i386/opensslconf.h
+++ b/src/lib/libcrypto/arch/i386/opensslconf.h
@@ -7,6 +7,16 @@
7 7
8#undef OPENSSL_EXPORT_VAR_AS_FUNCTION 8#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
9 9
10#ifndef OPENSSL_FILE
11#ifdef OPENSSL_NO_FILENAMES
12#define OPENSSL_FILE ""
13#define OPENSSL_LINE 0
14#else
15#define OPENSSL_FILE __FILE__
16#define OPENSSL_LINE __LINE__
17#endif
18#endif
19
10#if defined(HEADER_IDEA_H) && !defined(IDEA_INT) 20#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
11#define IDEA_INT unsigned int 21#define IDEA_INT unsigned int
12#endif 22#endif