From 9a71b466147bcd334243d62996558a609657c07c Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Mon, 3 Oct 2011 12:19:48 -0400 Subject: [PATCH] versionskew.patch --- mozilla/security/nss/lib/ssl/sslsecur.c | 5 +++++ mozilla/security/nss/lib/ssl/sslsock.c | 6 ++++++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/mozilla/security/nss/lib/ssl/sslsecur.c b/mozilla/security/nss/lib/ssl/sslsecur.c index a0cae54..816b8f6 100644 --- a/mozilla/security/nss/lib/ssl/sslsecur.c +++ b/mozilla/security/nss/lib/ssl/sslsecur.c @@ -1316,6 +1316,10 @@ SSL_SetURL(PRFileDesc *fd, const char *url) SECStatus SSL_SetTrustAnchors(PRFileDesc *fd, CERTCertList *certList) { + PORT_SetError(PR_NOT_IMPLEMENTED_ERROR); + PR_NOT_REACHED("not implemented"); + return SECFailure; +#if 0 sslSocket * ss = ssl_FindSocket(fd); CERTDistNames *names = NULL; @@ -1343,6 +1347,7 @@ SSL_SetTrustAnchors(PRFileDesc *fd, CERTCertList *certList) ssl_Release1stHandshakeLock(ss); return SECSuccess; +#endif } /* diff --git a/mozilla/security/nss/lib/ssl/sslsock.c b/mozilla/security/nss/lib/ssl/sslsock.c index 4c8fbfd..b7e32a2 100644 --- a/mozilla/security/nss/lib/ssl/sslsock.c +++ b/mozilla/security/nss/lib/ssl/sslsock.c @@ -1343,6 +1343,11 @@ SSL_GetNextProto(PRFileDesc *fd, int *state, unsigned char *buf, PRFileDesc * SSL_ReconfigFD(PRFileDesc *model, PRFileDesc *fd) { + PORT_SetError(PR_NOT_IMPLEMENTED_ERROR); + PR_NOT_REACHED("not implemented"); + return NULL; + +#if 0 sslSocket * sm = NULL, *ss = NULL; int i; sslServerCerts * mc = sm->serverCerts; @@ -1445,6 +1450,7 @@ SSL_ReconfigFD(PRFileDesc *model, PRFileDesc *fd) return fd; loser: return NULL; +#endif } /************************************************************************/