summaryrefslogtreecommitdiffstats
path: root/net/third_party/nss/patches/versionskew.patch
blob: 79737a17f85a0dcb33695f0421d88d22220cdc05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
diff -pu a/nss/lib/ssl/sslsecur.c b/nss/lib/ssl/sslsecur.c
--- a/nss/lib/ssl/sslsecur.c	2013-04-27 09:17:17.216390477 -0700
+++ b/nss/lib/ssl/sslsecur.c	2013-04-27 09:18:33.277467610 -0700
@@ -1312,6 +1312,10 @@ SSL_SetURL(PRFileDesc *fd, const char *u
 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;
 
@@ -1339,6 +1343,7 @@ SSL_SetTrustAnchors(PRFileDesc *fd, CERT
     ssl_Release1stHandshakeLock(ss);
 
     return SECSuccess;
+#endif
 }
 
 /*
diff -pu a/nss/lib/ssl/sslsock.c b/nss/lib/ssl/sslsock.c
--- a/nss/lib/ssl/sslsock.c	2013-04-27 09:17:17.226390616 -0700
+++ b/nss/lib/ssl/sslsock.c	2013-04-27 09:18:33.277467610 -0700
@@ -1622,6 +1622,11 @@ SSL_GetSRTPCipher(PRFileDesc *fd, PRUint
 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 = NULL;
@@ -1737,6 +1742,7 @@ SSL_ReconfigFD(PRFileDesc *model, PRFile
     return fd;
 loser:
     return NULL;
+#endif
 }
 
 PRBool