Do not crash if Server SID cache is uninitialized. Bug 237724 r=Julien
authornelsonb%netscape.com
Wed, 17 Aug 2011 05:01:47 +0000
changeset 10079 88a34585ef850f62fab46d3cc4bd617aa85285f5
parent 10078 db2747113a01ba3ddf40f216e2c6fe5ce53849d2
child 10080 bf46e6821bbcf0980970dfd306dddfb637c86db7
push idunknown
push userunknown
push dateunknown
reviewersJulien
bugs237724
Do not crash if Server SID cache is uninitialized. Bug 237724 r=Julien Instead, if SSL_NO_CACHE is not set, return an error code.
security/nss/lib/ssl/SSLerrs.h
--- a/security/nss/lib/ssl/SSLerrs.h
+++ b/security/nss/lib/ssl/SSLerrs.h
@@ -362,8 +362,11 @@ ER3(SSL_ERROR_INTERNAL_ERROR_ALERT      
 "Peer reports it experienced an internal error.")
 
 ER3(SSL_ERROR_USER_CANCELED_ALERT         , (SSL_ERROR_BASE + 101),
 "Peer user canceled handshake.")
 
 ER3(SSL_ERROR_NO_RENEGOTIATION_ALERT      , (SSL_ERROR_BASE + 102),
 "Peer does not permit renegotiation of SSL security parameters.")
 
+ER3(SSL_ERROR_SERVER_CACHE_NOT_CONFIGURED , (SSL_ERROR_BASE + 103),
+"SSL server cache not configured and not disabled for this socket.")
+