Bug 540304: Rename ExtensionType to SSLExtensionType. The patch is
contributed by Kai Engert <kaie@kuix.de>. r=wtc.
Modified Files:
ssl.h sslreveal.c sslt.h
--- a/security/nss/lib/ssl/ssl.h
+++ b/security/nss/lib/ssl/ssl.h
@@ -603,14 +603,14 @@ SSL_IMPORT SECStatus SSL_CanBypass(CERTC
PRUint16 *ciphers, int nciphers,
PRBool *pcanbypass, void *pwArg);
/*
** Did the handshake with the peer negotiate the given extension?
** Output parameter valid only if function returns SECSuccess
*/
SSL_IMPORT SECStatus SSL_HandshakeNegotiatedExtension(PRFileDesc * socket,
- ExtensionType extId,
+ SSLExtensionType extId,
PRBool *yes);
SEC_END_PROTOS
#endif /* __ssl_h_ */
--- a/security/nss/lib/ssl/sslreveal.c
+++ b/security/nss/lib/ssl/sslreveal.c
@@ -100,17 +100,17 @@ SSL_RevealURL(PRFileDesc * fd)
/* given PRFileDesc, returns status information related to extensions
* negotiated with peer during the handshake.
*/
SECStatus
SSL_HandshakeNegotiatedExtension(PRFileDesc * socket,
- ExtensionType extId,
+ SSLExtensionType extId,
PRBool *pYes)
{
/* some decisions derived from SSL_GetChannelInfo */
sslSocket * sslsocket = NULL;
SECStatus rv = SECFailure;
if (!pYes)
return rv;
--- a/security/nss/lib/ssl/sslt.h
+++ b/security/nss/lib/ssl/sslt.h
@@ -199,13 +199,13 @@ typedef enum {
typedef enum {
ssl_server_name_xtn = 0,
#ifdef NSS_ENABLE_ECC
ssl_elliptic_curves_xtn = 10,
ssl_ec_point_formats_xtn = 11,
#endif
ssl_session_ticket_xtn = 35,
ssl_renegotiation_info_xtn = 0xff01 /* experimental number */
-} ExtensionType;
+} SSLExtensionType;
#define SSL_MAX_EXTENSIONS 5
#endif /* __sslt_h_ */