Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: net/third_party/nss/patches/cachelocks.patch

Issue 142283002: Update net/third_party/nss to NSS_3_15_5_BETA2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix applypatches.sh mistakes Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 diff -pu a/nss/lib/ssl/ssl3con.c b/nss/lib/ssl/ssl3con.c 1 diff -pu a/nss/lib/ssl/ssl3con.c b/nss/lib/ssl/ssl3con.c
2 --- a/nss/lib/ssl/ssl3con.c» 2014-01-03 19:02:30.135754914 -0800 2 --- a/nss/lib/ssl/ssl3con.c» 2014-01-17 18:10:16.783281701 -0800
3 +++ b/nss/lib/ssl/ssl3con.c» 2014-01-03 19:03:07.266361523 -0800 3 +++ b/nss/lib/ssl/ssl3con.c» 2014-01-17 18:11:03.734060469 -0800
4 @@ -5655,7 +5655,6 @@ SSL3_ShutdownServerCache(void) 4 @@ -5678,7 +5678,6 @@ SSL3_ShutdownServerCache(void)
5 } 5 }
6 6
7 PZ_Unlock(symWrapKeysLock); 7 PZ_Unlock(symWrapKeysLock);
8 - ssl_FreeSessionCacheLocks(); 8 - ssl_FreeSessionCacheLocks();
9 return SECSuccess; 9 return SECSuccess;
10 } 10 }
11 11
12 @@ -5707,7 +5706,7 @@ getWrappingKey( sslSocket * ss, 12 @@ -5730,7 +5729,7 @@ getWrappingKey( sslSocket * ss,
13 13
14 pSymWrapKey = &symWrapKeys[symWrapMechIndex].symWrapKey[exchKeyType]; 14 pSymWrapKey = &symWrapKeys[symWrapMechIndex].symWrapKey[exchKeyType];
15 15
16 - ssl_InitSessionCacheLocks(PR_TRUE); 16 - ssl_InitSessionCacheLocks(PR_TRUE);
17 + ssl_InitSessionCacheLocks(); 17 + ssl_InitSessionCacheLocks();
18 18
19 PZ_Lock(symWrapKeysLock); 19 PZ_Lock(symWrapKeysLock);
20 20
21 diff -pu a/nss/lib/ssl/sslimpl.h b/nss/lib/ssl/sslimpl.h 21 diff -pu a/nss/lib/ssl/sslimpl.h b/nss/lib/ssl/sslimpl.h
22 --- a/nss/lib/ssl/sslimpl.h» 2014-01-03 19:02:30.135754914 -0800 22 --- a/nss/lib/ssl/sslimpl.h» 2014-01-17 18:10:16.793281867 -0800
23 +++ b/nss/lib/ssl/sslimpl.h» 2014-01-03 19:03:07.266361523 -0800 23 +++ b/nss/lib/ssl/sslimpl.h» 2014-01-17 18:11:03.734060469 -0800
24 @@ -1904,9 +1904,7 @@ extern SECStatus ssl_InitSymWrapKeysLock 24 @@ -1913,9 +1913,7 @@ extern SECStatus ssl_InitSymWrapKeysLock
25 25
26 extern SECStatus ssl_FreeSymWrapKeysLock(void); 26 extern SECStatus ssl_FreeSymWrapKeysLock(void);
27 27
28 -extern SECStatus ssl_InitSessionCacheLocks(PRBool lazyInit); 28 -extern SECStatus ssl_InitSessionCacheLocks(PRBool lazyInit);
29 - 29 -
30 -extern SECStatus ssl_FreeSessionCacheLocks(void); 30 -extern SECStatus ssl_FreeSessionCacheLocks(void);
31 +extern SECStatus ssl_InitSessionCacheLocks(void); 31 +extern SECStatus ssl_InitSessionCacheLocks(void);
32 32
33 /***************** platform client auth ****************/ 33 /***************** platform client auth ****************/
34 34
35 diff -pu a/nss/lib/ssl/sslnonce.c b/nss/lib/ssl/sslnonce.c 35 diff -pu a/nss/lib/ssl/sslnonce.c b/nss/lib/ssl/sslnonce.c
36 --- a/nss/lib/ssl/sslnonce.c» 2014-01-03 18:54:48.638219358 -0800 36 --- a/nss/lib/ssl/sslnonce.c» 2014-01-17 17:59:03.242109996 -0800
37 +++ b/nss/lib/ssl/sslnonce.c» 2014-01-03 19:03:07.276361687 -0800 37 +++ b/nss/lib/ssl/sslnonce.c» 2014-01-17 18:11:03.754060801 -0800
38 @@ -35,91 +35,55 @@ static PZLock * cacheLock = NULL; 38 @@ -35,91 +35,55 @@ static PZLock * cacheLock = NULL;
39 #define LOCK_CACHE lock_cache() 39 #define LOCK_CACHE lock_cache()
40 #define UNLOCK_CACHE PZ_Unlock(cacheLock) 40 #define UNLOCK_CACHE PZ_Unlock(cacheLock)
41 41
42 -static SECStatus 42 -static SECStatus
43 -ssl_InitClientSessionCacheLock(void) 43 -ssl_InitClientSessionCacheLock(void)
44 -{ 44 -{
45 - cacheLock = PZ_NewLock(nssILockCache); 45 - cacheLock = PZ_NewLock(nssILockCache);
46 - return cacheLock ? SECSuccess : SECFailure; 46 - return cacheLock ? SECSuccess : SECFailure;
47 -} 47 -}
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 -static void 195 -static void
196 +static void 196 +static void
197 lock_cache(void) 197 lock_cache(void)
198 { 198 {
199 - ssl_InitSessionCacheLocks(PR_TRUE); 199 - ssl_InitSessionCacheLocks(PR_TRUE);
200 + ssl_InitSessionCacheLocks(); 200 + ssl_InitSessionCacheLocks();
201 PZ_Lock(cacheLock); 201 PZ_Lock(cacheLock);
202 } 202 }
203 203
204 diff -pu a/nss/lib/ssl/sslsnce.c b/nss/lib/ssl/sslsnce.c 204 diff -pu a/nss/lib/ssl/sslsnce.c b/nss/lib/ssl/sslsnce.c
205 --- a/nss/lib/ssl/sslsnce.c» 2014-01-03 18:38:48.402575652 -0800 205 --- a/nss/lib/ssl/sslsnce.c» 2014-01-17 17:49:26.072517368 -0800
206 +++ b/nss/lib/ssl/sslsnce.c» 2014-01-03 19:03:07.276361687 -0800 206 +++ b/nss/lib/ssl/sslsnce.c» 2014-01-17 18:11:03.774061133 -0800
207 @@ -1353,7 +1353,7 @@ SSL_ConfigServerSessionIDCache( int 207 @@ -1353,7 +1353,7 @@ SSL_ConfigServerSessionIDCache( int
208 PRUint32 ssl3_timeout, 208 PRUint32 ssl3_timeout,
209 const char * directory) 209 const char * directory)
210 { 210 {
211 - ssl_InitSessionCacheLocks(PR_FALSE); 211 - ssl_InitSessionCacheLocks(PR_FALSE);
212 + ssl_InitSessionCacheLocks(); 212 + ssl_InitSessionCacheLocks();
213 return SSL_ConfigServerSessionIDCacheInstance(&globalCache, 213 return SSL_ConfigServerSessionIDCacheInstance(&globalCache,
214 maxCacheEntries, ssl2_timeout, ssl3_timeout, directory, PR_FALSE ); 214 maxCacheEntries, ssl2_timeout, ssl3_timeout, directory, PR_FALSE );
215 } 215 }
216 @@ -1467,7 +1467,7 @@ SSL_ConfigServerSessionIDCacheWithOpt( 216 @@ -1467,7 +1467,7 @@ SSL_ConfigServerSessionIDCacheWithOpt(
217 PRBool enableMPCache) 217 PRBool enableMPCache)
218 { 218 {
219 if (!enableMPCache) { 219 if (!enableMPCache) {
220 - ssl_InitSessionCacheLocks(PR_FALSE); 220 - ssl_InitSessionCacheLocks(PR_FALSE);
221 + ssl_InitSessionCacheLocks(); 221 + ssl_InitSessionCacheLocks();
222 return ssl_ConfigServerSessionIDCacheInstanceWithOpt(&globalCache, 222 return ssl_ConfigServerSessionIDCacheInstanceWithOpt(&globalCache,
223 ssl2_timeout, ssl3_timeout, directory, PR_FALSE, 223 ssl2_timeout, ssl3_timeout, directory, PR_FALSE,
224 maxCacheEntries, maxCertCacheEntries, maxSrvNameCacheEntries); 224 maxCacheEntries, maxCertCacheEntries, maxSrvNameCacheEntries);
225 @@ -1512,7 +1512,7 @@ SSL_InheritMPServerSIDCacheInstance(cach 225 @@ -1512,7 +1512,7 @@ SSL_InheritMPServerSIDCacheInstance(cach
226 return SECSuccess; /* already done. */ 226 return SECSuccess; /* already done. */
227 } 227 }
228 228
229 - ssl_InitSessionCacheLocks(PR_FALSE); 229 - ssl_InitSessionCacheLocks(PR_FALSE);
230 + ssl_InitSessionCacheLocks(); 230 + ssl_InitSessionCacheLocks();
231 231
232 ssl_sid_lookup = ServerSessionIDLookup; 232 ssl_sid_lookup = ServerSessionIDLookup;
233 ssl_sid_cache = ServerSessionIDCache; 233 ssl_sid_cache = ServerSessionIDCache;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698