]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
tls1_set_groups_list(): Update raised errors
authorTomas Mraz <tomas@openssl.org>
Mon, 24 Feb 2025 08:21:00 +0000 (09:21 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 25 Feb 2025 14:34:24 +0000 (15:34 +0100)
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)

ssl/t1_lib.c

index 7c18dadbda3c2227c3e44d00c62145fbf19d1651..456d98cb4335710315ede46c2844d7a141085a76 100644 (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;
     }