diff options
author | jsing <> | 2020-01-21 05:19:02 +0000 |
---|---|---|
committer | jsing <> | 2020-01-21 05:19:02 +0000 |
commit | 460496e02df69c7c7be18c9b45a095914ee59be4 (patch) | |
tree | db92f8cad8bd91994d19bc6916dbc4522fb4ef95 /src/lib/libssl/tls13_lib.c | |
parent | f9666f9db9296ab0643d410ce0eb3486772e422d (diff) | |
download | openbsd-460496e02df69c7c7be18c9b45a095914ee59be4.tar.gz openbsd-460496e02df69c7c7be18c9b45a095914ee59be4.tar.bz2 openbsd-460496e02df69c7c7be18c9b45a095914ee59be4.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 'src/lib/libssl/tls13_lib.c')
-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: |