From 460496e02df69c7c7be18c9b45a095914ee59be4 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Tue, 21 Jan 2020 05:19:02 +0000 Subject: 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@ --- src/lib/libssl/tls13_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libssl/tls13_lib.c') 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 @@ -/* $OpenBSD: tls13_lib.c,v 1.15 2020/01/21 04:45:18 tb Exp $ */ +/* $OpenBSD: tls13_lib.c,v 1.16 2020/01/21 05:19:02 jsing Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing * Copyright (c) 2019 Bob Beck @@ -346,7 +346,7 @@ static void tls13_legacy_error(SSL *ssl) { struct tls13_ctx *ctx = ssl->internal->tls13; - int reason = ERR_R_INTERNAL_ERROR; + int reason = SSL_R_UNKNOWN; switch (ctx->error.code) { case TLS13_ERR_VERIFY_FAILED: -- cgit v1.2.3-55-g6feb