diff options
| author | tb <> | 2025-03-09 15:12:18 +0000 |
|---|---|---|
| committer | tb <> | 2025-03-09 15:12:18 +0000 |
| commit | b8acfd2983c50474382bf8ed132a5b7e7bdedb34 (patch) | |
| tree | 5b5e2ff7b9d13fcc95c0f5fe74f988c748ffd3c4 /src/lib/libcrypto/arch/amd64 | |
| parent | 295201c1a1d954e6a18b9493beee44ec2c815d69 (diff) | |
| download | openbsd-b8acfd2983c50474382bf8ed132a5b7e7bdedb34.tar.gz openbsd-b8acfd2983c50474382bf8ed132a5b7e7bdedb34.tar.bz2 openbsd-b8acfd2983c50474382bf8ed132a5b7e7bdedb34.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 'src/lib/libcrypto/arch/amd64')
| -rw-r--r-- | src/lib/libcrypto/arch/amd64/opensslconf.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/libcrypto/arch/amd64/opensslconf.h b/src/lib/libcrypto/arch/amd64/opensslconf.h index 4187a44c86..cc193762f1 100644 --- a/src/lib/libcrypto/arch/amd64/opensslconf.h +++ b/src/lib/libcrypto/arch/amd64/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 |
