tls1_set_groups_list(): Update raised errors

Do not raise ERR_LIB_CONF codes from libssl.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26801)
This commit is contained in:
Tomas Mraz 2025-02-24 09:21:00 +01:00
parent 0b40fac3fb
commit 4c69caef48

View File

@ -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;
}