Bug 507359: add SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_VERSION. Update the
error message for SSL_ERROR_HANDSHAKE_NOT_COMPLETED. r=bsmith,rrelyea. Modified Files: SSLerrs.h sslerr.h sslinfo.c git-svn-id: svn://10.0.0.236/trunk@264025 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
de2465a9e7
commit
20f531e00c
@ -285,7 +285,7 @@ ER3(SSL_ERROR_NO_COMPRESSION_OVERLAP , (SSL_ERROR_BASE + 85),
|
|||||||
"Cannot communicate securely with peer: no common compression algorithm(s).")
|
"Cannot communicate securely with peer: no common compression algorithm(s).")
|
||||||
|
|
||||||
ER3(SSL_ERROR_HANDSHAKE_NOT_COMPLETED , (SSL_ERROR_BASE + 86),
|
ER3(SSL_ERROR_HANDSHAKE_NOT_COMPLETED , (SSL_ERROR_BASE + 86),
|
||||||
"Cannot initiate another SSL handshake until current handshake is complete.")
|
"Cannot perform the operation until the handshake is complete.")
|
||||||
|
|
||||||
ER3(SSL_ERROR_BAD_HANDSHAKE_HASH_VALUE , (SSL_ERROR_BASE + 87),
|
ER3(SSL_ERROR_BAD_HANDSHAKE_HASH_VALUE , (SSL_ERROR_BASE + 87),
|
||||||
"Received incorrect handshakes hash values from peer.")
|
"Received incorrect handshakes hash values from peer.")
|
||||||
@ -397,3 +397,6 @@ ER3(SSL_ERROR_RX_MALFORMED_HELLO_VERIFY_REQUEST, (SSL_ERROR_BASE + 122),
|
|||||||
|
|
||||||
ER3(SSL_ERROR_RX_UNEXPECTED_HELLO_VERIFY_REQUEST, (SSL_ERROR_BASE + 123),
|
ER3(SSL_ERROR_RX_UNEXPECTED_HELLO_VERIFY_REQUEST, (SSL_ERROR_BASE + 123),
|
||||||
"SSL received an unexpected Hello Verify Request handshake message.")
|
"SSL received an unexpected Hello Verify Request handshake message.")
|
||||||
|
|
||||||
|
ER3(SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_VERSION, (SSL_ERROR_BASE + 124),
|
||||||
|
"SSL feature not supported for the protocol version.")
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
/* $Id: sslerr.h,v 1.24 2012-05-08 00:10:56 wtc%google.com Exp $ */
|
/* $Id: sslerr.h,v 1.25 2012-07-13 00:51:57 wtc%google.com Exp $ */
|
||||||
#ifndef __SSL_ERR_H_
|
#ifndef __SSL_ERR_H_
|
||||||
#define __SSL_ERR_H_
|
#define __SSL_ERR_H_
|
||||||
|
|
||||||
@ -186,6 +186,8 @@ SSL_ERROR_CIPHER_DISALLOWED_FOR_VERSION = (SSL_ERROR_BASE + 121),
|
|||||||
SSL_ERROR_RX_MALFORMED_HELLO_VERIFY_REQUEST = (SSL_ERROR_BASE + 122),
|
SSL_ERROR_RX_MALFORMED_HELLO_VERIFY_REQUEST = (SSL_ERROR_BASE + 122),
|
||||||
SSL_ERROR_RX_UNEXPECTED_HELLO_VERIFY_REQUEST = (SSL_ERROR_BASE + 123),
|
SSL_ERROR_RX_UNEXPECTED_HELLO_VERIFY_REQUEST = (SSL_ERROR_BASE + 123),
|
||||||
|
|
||||||
|
SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_VERSION = (SSL_ERROR_BASE + 124),
|
||||||
|
|
||||||
SSL_ERROR_END_OF_LIST /* let the c compiler determine the value of this. */
|
SSL_ERROR_END_OF_LIST /* let the c compiler determine the value of this. */
|
||||||
} SSLErrorCodes;
|
} SSLErrorCodes;
|
||||||
#endif /* NO_SECURITY_ERROR_ENUM */
|
#endif /* NO_SECURITY_ERROR_ENUM */
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
/* $Id: sslinfo.c,v 1.29 2012-04-25 14:50:12 gerv%gerv.net Exp $ */
|
/* $Id: sslinfo.c,v 1.30 2012-07-13 00:51:57 wtc%google.com Exp $ */
|
||||||
#include "ssl.h"
|
#include "ssl.h"
|
||||||
#include "sslimpl.h"
|
#include "sslimpl.h"
|
||||||
#include "sslproto.h"
|
#include "sslproto.h"
|
||||||
@ -343,7 +343,7 @@ SSL_ExportKeyingMaterial(PRFileDesc *fd,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ss->version < SSL_LIBRARY_VERSION_3_1_TLS) {
|
if (ss->version < SSL_LIBRARY_VERSION_3_1_TLS) {
|
||||||
PORT_SetError(SSL_ERROR_UNSUPPORTED_VERSION);
|
PORT_SetError(SSL_ERROR_FEATURE_NOT_SUPPORTED_FOR_VERSION);
|
||||||
return SECFailure;
|
return SECFailure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user