]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
SSL: Change SSLerr() to ERR_raise()
authorRichard Levitte <levitte@openssl.org>
Thu, 19 Nov 2020 07:37:18 +0000 (08:37 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 20 Nov 2020 08:39:11 +0000 (09:39 +0100)
This was probably due to a merge

Fixes #13449

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/13450)

ssl/d1_lib.c
ssl/ssl_lib.c

index 5ecf1d19fa917877971385add8de2ea06afc8c4d..bd50ee6d9ce48044f06e1ea0d7b42042526c9c7e 100644 (file)
@@ -487,7 +487,7 @@ int DTLSv1_listen(SSL *s, BIO_ADDR *client)
     }
 
     if (!ssl3_setup_buffers(s)) {
-        /* SSLerr already called */
+        /* ERR_raise() already called */
         return -1;
     }
     buf = RECORD_LAYER_get_rbuf(&s->rlayer)->buf;
index bb0eec9b5f5f3d27589e87c573c0b7bfaa8eb39e..09702e81c32eb020604630a803ff17b32328ef70 100644 (file)
@@ -5960,7 +5960,7 @@ int SSL_set0_tmp_dh_pkey(SSL *s, EVP_PKEY *dhpkey)
 {
     if (!ssl_security(s, SSL_SECOP_TMP_DH,
                       EVP_PKEY_security_bits(dhpkey), 0, dhpkey)) {
-        SSLerr(0, SSL_R_DH_KEY_TOO_SMALL);
+        ERR_raise(ERR_LIB_SSL, SSL_R_DH_KEY_TOO_SMALL);
         EVP_PKEY_free(dhpkey);
         return 0;
     }
@@ -5973,7 +5973,7 @@ int SSL_CTX_set0_tmp_dh_pkey(SSL_CTX *ctx, EVP_PKEY *dhpkey)
 {
     if (!ssl_ctx_security(ctx, SSL_SECOP_TMP_DH,
                           EVP_PKEY_security_bits(dhpkey), 0, dhpkey)) {
-        SSLerr(0, SSL_R_DH_KEY_TOO_SMALL);
+        ERR_raise(ERR_LIB_SSL, SSL_R_DH_KEY_TOO_SMALL);
         EVP_PKEY_free(dhpkey);
         return 0;
     }