From 4c69caef48cdaa6f25388613f225f6ed6974a501 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Mon, 24 Feb 2025 09:21:00 +0100 Subject: [PATCH] tls1_set_groups_list(): Update raised errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Do not raise ERR_LIB_CONF codes from libssl. Reviewed-by: Tim Hudson Reviewed-by: Saša Nedvědický (Merged from https://github.com/openssl/openssl/pull/26801) --- ssl/t1_lib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 7c18dadbda..456d98cb43 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -1245,7 +1245,7 @@ static int gid_cb(const char *elem, int len, void *arg) /* Sanity checks */ if (garg == NULL || elem == NULL || len <= 0) { - ERR_raise(ERR_LIB_CONF, CONF_R_VARIABLE_HAS_NO_VALUE); + ERR_raise(ERR_LIB_SSL, SSL_R_UNSUPPORTED_CONFIG_VALUE); return 0; } @@ -1509,7 +1509,7 @@ static int tuple_cb(const char *tuple, int len, void *arg) /* Sanity checks */ if (garg == NULL || tuple == NULL || len <= 0) { - ERR_raise(ERR_LIB_CONF, CONF_R_VARIABLE_HAS_NO_VALUE); + ERR_raise(ERR_LIB_SSL, SSL_R_UNSUPPORTED_CONFIG_VALUE); return 0; } @@ -1572,7 +1572,7 @@ int tls1_set_groups_list(SSL_CTX *ctx, /* Sanity check */ if (ctx == NULL) { - ERR_raise(ERR_LIB_CONF, ERR_R_INTERNAL_ERROR); + ERR_raise(ERR_LIB_SSL, ERR_R_PASSED_NULL_PARAMETER); return 0; }