diff options
author | tb <> | 2025-03-09 15:12:18 +0000 |
---|---|---|
committer | tb <> | 2025-03-09 15:12:18 +0000 |
commit | 85cb68064f0dbda5b0f9fd114c7c3eb0e727fa17 (patch) | |
tree | 5b5e2ff7b9d13fcc95c0f5fe74f988c748ffd3c4 /src/lib/libssl/tls13_internal.h | |
parent | 77bd8b3903f6a7c7c5714f242d8ce5654fc26538 (diff) | |
download | openbsd-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 'src/lib/libssl/tls13_internal.h')
-rw-r--r-- | src/lib/libssl/tls13_internal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index 0819e93338..7a7f8abc63 100644 --- a/src/lib/libssl/tls13_internal.h +++ b/src/lib/libssl/tls13_internal.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls13_internal.h,v 1.104 2024/09/09 03:32:29 tb Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.105 2025/03/09 15:12:18 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> |
4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
@@ -425,10 +425,10 @@ int tls13_error_setx(struct tls13_error *error, int code, int subcode, | |||
425 | const char *file, int line, const char *fmt, ...); | 425 | const char *file, int line, const char *fmt, ...); |
426 | 426 | ||
427 | #define tls13_set_error(ctx, code, subcode, fmt, ...) \ | 427 | #define tls13_set_error(ctx, code, subcode, fmt, ...) \ |
428 | tls13_error_set(&(ctx)->error, (code), (subcode), __FILE__, __LINE__, \ | 428 | tls13_error_set(&(ctx)->error, (code), (subcode), OPENSSL_FILE, OPENSSL_LINE, \ |
429 | (fmt), __VA_ARGS__) | 429 | (fmt), __VA_ARGS__) |
430 | #define tls13_set_errorx(ctx, code, subcode, fmt, ...) \ | 430 | #define tls13_set_errorx(ctx, code, subcode, fmt, ...) \ |
431 | tls13_error_setx(&(ctx)->error, (code), (subcode), __FILE__, __LINE__, \ | 431 | tls13_error_setx(&(ctx)->error, (code), (subcode), OPENSSL_FILE, OPENSSL_LINE, \ |
432 | (fmt), __VA_ARGS__) | 432 | (fmt), __VA_ARGS__) |
433 | 433 | ||
434 | int tls13_exporter(struct tls13_ctx *ctx, const uint8_t *label, size_t label_len, | 434 | int tls13_exporter(struct tls13_ctx *ctx, const uint8_t *label, size_t label_len, |