From: Tomas Mraz Date: Mon, 24 Feb 2025 08:21:00 +0000 (+0100) Subject: tls1_set_groups_list(): Update raised errors X-Git-Tag: openssl-3.5.0-alpha1~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c69caef48cdaa6f25388613f225f6ed6974a501;p=thirdparty%2Fopenssl.git tls1_set_groups_list(): Update raised errors 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) --- diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 7c18dadbda3..456d98cb433 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; }