diff options
| author | jsing <> | 2020-01-21 05:19:02 +0000 |
|---|---|---|
| committer | jsing <> | 2020-01-21 05:19:02 +0000 |
| commit | b37508927616e0339a6459a12d43ae4a56ef7b3d (patch) | |
| tree | db92f8cad8bd91994d19bc6916dbc4522fb4ef95 /src/lib/libssl/tls13_lib.c | |
| parent | caf0ffb8aaaf58c5a55de1a955c64b32d52b8e7f (diff) | |
| download | openbsd-b37508927616e0339a6459a12d43ae4a56ef7b3d.tar.gz openbsd-b37508927616e0339a6459a12d43ae4a56ef7b3d.tar.bz2 openbsd-b37508927616e0339a6459a12d43ae4a56ef7b3d.zip | |
Provide SSL_R_UNKNOWN.
This allows us to indicate that the cause of the failure is unknown, rather
than implying that it was an internal error when it was not.
ok beck@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/tls13_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/tls13_lib.c b/src/lib/libssl/tls13_lib.c index fbd7a9a83a..451e798cb8 100644 --- a/src/lib/libssl/tls13_lib.c +++ b/src/lib/libssl/tls13_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls13_lib.c,v 1.15 2020/01/21 04:45:18 tb Exp $ */ | 1 | /* $OpenBSD: tls13_lib.c,v 1.16 2020/01/21 05:19:02 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> |
| 4 | * Copyright (c) 2019 Bob Beck <beck@openbsd.org> | 4 | * Copyright (c) 2019 Bob Beck <beck@openbsd.org> |
| @@ -346,7 +346,7 @@ static void | |||
| 346 | tls13_legacy_error(SSL *ssl) | 346 | tls13_legacy_error(SSL *ssl) |
| 347 | { | 347 | { |
| 348 | struct tls13_ctx *ctx = ssl->internal->tls13; | 348 | struct tls13_ctx *ctx = ssl->internal->tls13; |
| 349 | int reason = ERR_R_INTERNAL_ERROR; | 349 | int reason = SSL_R_UNKNOWN; |
| 350 | 350 | ||
| 351 | switch (ctx->error.code) { | 351 | switch (ctx->error.code) { |
| 352 | case TLS13_ERR_VERIFY_FAILED: | 352 | case TLS13_ERR_VERIFY_FAILED: |
