Fix error codes.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 4 Feb 2013 21:13:18 +0000 (21:13 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 5 Feb 2013 16:50:36 +0000 (16:50 +0000)
(cherry picked from commit 35d732fc2e1badce13be22a044187ebd4d769552)

ssl/d1_pkt.c
ssl/s3_pkt.c
ssl/ssl.h
ssl/ssl_err.c
ssl/ssl_lib.c

index 72c5d9d29404bf3969799c659df24f26c7b48c74..3f0f9836981f8c4161ccde3b86fe8fe1bca619e3 100644 (file)
@@ -405,7 +405,7 @@ printf("\n");
                     rr->orig_len < mac_size+1))
                        {
                        al=SSL_AD_DECODE_ERROR;
-                       SSLerr(SSL_F_SSL3_GET_RECORD,SSL_R_LENGTH_TOO_SHORT);
+                       SSLerr(SSL_F_DTLS1_PROCESS_RECORD,SSL_R_LENGTH_TOO_SHORT);
                        goto f_err;
                        }
 
index 9f5abd516d87ade26c1a240b2c4c807a7fd5ad84..6d0a2ee0cac67d38395abf5cb1261ecd9756727c 100644 (file)
@@ -361,7 +361,7 @@ again:
        if (enc_err == 0)
                {
                al=SSL_AD_DECRYPTION_FAILED;
-               SSLerr(SSL_F_TLS1_ENC,SSL_R_BLOCK_CIPHER_PAD_IS_WRONG);
+               SSLerr(SSL_F_SSL3_GET_RECORD,SSL_R_BLOCK_CIPHER_PAD_IS_WRONG);
                goto f_err;
                }
 
index eb50e14efd6f61d3373bfdd24ed614922f3075a8..d6bbc449ddf4482405c740bce198687f4a708551 100644 (file)
--- a/ssl/ssl.h
+++ b/ssl/ssl.h
@@ -1820,6 +1820,7 @@ void ERR_load_SSL_strings(void);
 #define SSL_F_SSL_GET_NEW_SESSION                       181
 #define SSL_F_SSL_GET_PREV_SESSION                      217
 #define SSL_F_SSL_GET_SERVER_SEND_CERT                  182
+#define SSL_F_SSL_GET_SERVER_SEND_PKEY                  317
 #define SSL_F_SSL_GET_SIGN_PKEY                                 183
 #define SSL_F_SSL_INIT_WBIO_BUFFER                      184
 #define SSL_F_SSL_LOAD_CLIENT_CA_FILE                   185
index 20895ee903afc10731203e558768c3d617eea4a8..60e7e9d16c041a06d2cbb02a7f140d5b4fc0458b 100644 (file)
@@ -218,6 +218,7 @@ static ERR_STRING_DATA SSL_str_functs[]=
 {ERR_FUNC(SSL_F_SSL_GET_NEW_SESSION),  "SSL_GET_NEW_SESSION"},
 {ERR_FUNC(SSL_F_SSL_GET_PREV_SESSION), "SSL_GET_PREV_SESSION"},
 {ERR_FUNC(SSL_F_SSL_GET_SERVER_SEND_CERT),     "SSL_GET_SERVER_SEND_CERT"},
+{ERR_FUNC(SSL_F_SSL_GET_SERVER_SEND_PKEY),     "SSL_GET_SERVER_SEND_PKEY"},
 {ERR_FUNC(SSL_F_SSL_GET_SIGN_PKEY),    "SSL_GET_SIGN_PKEY"},
 {ERR_FUNC(SSL_F_SSL_INIT_WBIO_BUFFER), "SSL_INIT_WBIO_BUFFER"},
 {ERR_FUNC(SSL_F_SSL_LOAD_CLIENT_CA_FILE),      "SSL_load_client_CA_file"},
index 5980b852e0e19d49a1b37fdbf57176f6079cc0ac..8b6b601cabd88da639489dad0443abc02f3f92da 100644 (file)
@@ -1993,7 +1993,7 @@ CERT_PKEY *ssl_get_server_send_pkey(const SSL *s)
                }
        else /* if (kalg & SSL_aNULL) */
                {
-               SSLerr(SSL_F_SSL_GET_SERVER_SEND_CERT,ERR_R_INTERNAL_ERROR);
+               SSLerr(SSL_F_SSL_GET_SERVER_SEND_PKEY,ERR_R_INTERNAL_ERROR);
                return(NULL);
                }