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

Side by Side Diff: net/third_party/nss/patches/nssrwlock.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-07 14:31:44.537621503 -0800 2 --- a/nss/lib/ssl/ssl3con.c» 2014-01-17 19:01:58.104487211 -0800
3 +++ b/nss/lib/ssl/ssl3con.c» 2014-01-08 15:00:02.814706742 -0800 3 +++ b/nss/lib/ssl/ssl3con.c» 2014-01-17 19:02:38.965159506 -0800
4 @@ -5211,7 +5211,7 @@ ssl3_SendClientHello(sslSocket *ss, PRBo 4 @@ -5211,7 +5211,7 @@ ssl3_SendClientHello(sslSocket *ss, PRBo
5 * the lock across the calls to ssl3_CallHelloExtensionSenders. 5 * the lock across the calls to ssl3_CallHelloExtensionSenders.
6 */ 6 */
7 if (sid->u.ssl3.lock) { 7 if (sid->u.ssl3.lock) {
8 - PR_RWLock_Rlock(sid->u.ssl3.lock); 8 - PR_RWLock_Rlock(sid->u.ssl3.lock);
9 + NSSRWLock_LockRead(sid->u.ssl3.lock); 9 + NSSRWLock_LockRead(sid->u.ssl3.lock);
10 } 10 }
11 11
12 if (isTLS || (ss->firstHsDone && ss->peerRequestedProtection)) { 12 if (isTLS || (ss->firstHsDone && ss->peerRequestedProtection)) {
13 @@ -5220,7 +5220,7 @@ ssl3_SendClientHello(sslSocket *ss, PRBo 13 @@ -5220,7 +5220,7 @@ ssl3_SendClientHello(sslSocket *ss, PRBo
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 @@ -5446,7 +5446,7 @@ ssl3_SendClientHello(sslSocket *ss, PRBo 177 @@ -5446,7 +5446,7 @@ ssl3_SendClientHello(sslSocket *ss, PRBo
178 } 178 }
179 179
180 if (sid->u.ssl3.lock) { 180 if (sid->u.ssl3.lock) {
181 - PR_RWLock_Unlock(sid->u.ssl3.lock); 181 - PR_RWLock_Unlock(sid->u.ssl3.lock);
182 + NSSRWLock_UnlockRead(sid->u.ssl3.lock); 182 + NSSRWLock_UnlockRead(sid->u.ssl3.lock);
183 } 183 }
184 184
185 if (ss->xtnData.sentSessionTicketInClientHello) { 185 if (ss->xtnData.sentSessionTicketInClientHello) {
186 diff -pu a/nss/lib/ssl/sslimpl.h b/nss/lib/ssl/sslimpl.h 186 diff -pu a/nss/lib/ssl/sslimpl.h b/nss/lib/ssl/sslimpl.h
187 --- a/nss/lib/ssl/sslimpl.h» 2014-01-07 14:31:44.537621503 -0800 187 --- a/nss/lib/ssl/sslimpl.h» 2014-01-17 19:00:52.843413560 -0800
188 +++ b/nss/lib/ssl/sslimpl.h» 2014-01-08 15:00:02.804706578 -0800 188 +++ b/nss/lib/ssl/sslimpl.h» 2014-01-17 19:02:38.965159506 -0800
189 @@ -728,7 +728,7 @@ struct sslSessionIDStr { 189 @@ -730,7 +730,7 @@ struct sslSessionIDStr {
190 * cached. Before then, there is no need to lock anything because 190 * cached. Before then, there is no need to lock anything because
191 * the sid isn't being shared by anything. 191 * the sid isn't being shared by anything.
192 */ 192 */
193 - PRRWLock *lock; 193 - PRRWLock *lock;
194 + NSSRWLock *lock; 194 + NSSRWLock *lock;
195 195
196 /* The lock must be held while reading or writing these members 196 /* The lock must be held while reading or writing these members
197 * because they change while the sid is cached. 197 * because they change while the sid is cached.
198 diff -pu a/nss/lib/ssl/sslnonce.c b/nss/lib/ssl/sslnonce.c 198 diff -pu a/nss/lib/ssl/sslnonce.c b/nss/lib/ssl/sslnonce.c
199 --- a/nss/lib/ssl/sslnonce.c» 2014-01-07 14:31:44.547621666 -0800 199 --- a/nss/lib/ssl/sslnonce.c» 2014-01-17 19:02:25.844943628 -0800
200 +++ b/nss/lib/ssl/sslnonce.c» 2014-01-08 15:00:02.814706742 -0800 200 +++ b/nss/lib/ssl/sslnonce.c» 2014-01-17 19:02:38.965159506 -0800
201 @@ -138,7 +138,7 @@ ssl_DestroySID(sslSessionID *sid) 201 @@ -136,7 +136,7 @@ ssl_DestroySID(sslSessionID *sid)
202 } 202 }
203 203
204 if (sid->u.ssl3.lock) { 204 if (sid->u.ssl3.lock) {
205 - PR_DestroyRWLock(sid->u.ssl3.lock); 205 - PR_DestroyRWLock(sid->u.ssl3.lock);
206 + NSSRWLock_Destroy(sid->u.ssl3.lock); 206 + NSSRWLock_Destroy(sid->u.ssl3.lock);
207 } 207 }
208 } 208 }
209 209
210 @@ -314,7 +314,7 @@ CacheSID(sslSessionID *sid) 210 @@ -308,7 +308,7 @@ CacheSID(sslSessionID *sid)
211 PRINT_BUF(8, (0, "sessionID:", 211 PRINT_BUF(8, (0, "sessionID:",
212 sid->u.ssl3.sessionID, sid->u.ssl3.sessionIDLength)); 212 sid->u.ssl3.sessionID, sid->u.ssl3.sessionIDLength));
213 213
214 - sid->u.ssl3.lock = PR_NewRWLock(PR_RWLOCK_RANK_NONE, NULL); 214 - sid->u.ssl3.lock = PR_NewRWLock(PR_RWLOCK_RANK_NONE, NULL);
215 + sid->u.ssl3.lock = NSSRWLock_New(NSS_RWLOCK_RANK_NONE, NULL); 215 + sid->u.ssl3.lock = NSSRWLock_New(NSS_RWLOCK_RANK_NONE, NULL);
216 if (!sid->u.ssl3.lock) { 216 if (!sid->u.ssl3.lock) {
217 return; 217 return;
218 } 218 }
219 @@ -454,7 +454,7 @@ ssl3_SetSIDSessionTicket(sslSessionID *s 219 @@ -448,7 +448,7 @@ ssl3_SetSIDSessionTicket(sslSessionID *s
220 * yet, so no locking is needed. 220 * yet, so no locking is needed.
221 */ 221 */
222 if (sid->u.ssl3.lock) { 222 if (sid->u.ssl3.lock) {
223 - PR_RWLock_Wlock(sid->u.ssl3.lock); 223 - PR_RWLock_Wlock(sid->u.ssl3.lock);
224 + NSSRWLock_LockWrite(sid->u.ssl3.lock); 224 + NSSRWLock_LockWrite(sid->u.ssl3.lock);
225 225
226 /* A server might have sent us an empty ticket, which has the 226 /* A server might have sent us an empty ticket, which has the
227 * effect of clearing the previously known ticket. 227 * effect of clearing the previously known ticket.
228 @@ -473,6 +473,6 @@ ssl3_SetSIDSessionTicket(sslSessionID *s 228 @@ -467,6 +467,6 @@ ssl3_SetSIDSessionTicket(sslSessionID *s
229 newSessionTicket->ticket.len = 0; 229 newSessionTicket->ticket.len = 0;
230 230
231 if (sid->u.ssl3.lock) { 231 if (sid->u.ssl3.lock) {
232 - PR_RWLock_Unlock(sid->u.ssl3.lock); 232 - PR_RWLock_Unlock(sid->u.ssl3.lock);
233 + NSSRWLock_UnlockWrite(sid->u.ssl3.lock); 233 + NSSRWLock_UnlockWrite(sid->u.ssl3.lock);
234 } 234 }
235 } 235 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698