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

Side by Side Diff: nss/lib/pk11wrap/dev3hack.c

Issue 1017413002: Uprev NSS to 3.18 RTM (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss.git@nspr_uprev
Patch Set: Rebased Created 5 years, 8 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
« no previous file with comments | « nss/lib/nss/nss.h ('k') | nss/lib/pk11wrap/pk11cert.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* This Source Code Form is subject to the terms of the Mozilla Public 1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 4
5 #ifndef PKIT_H 5 #ifndef PKIT_H
6 #include "pkit.h" 6 #include "pkit.h"
7 #endif /* PKIT_H */ 7 #endif /* PKIT_H */
8 8
9 #ifndef DEVM_H 9 #ifndef DEVM_H
10 #include "devm.h" 10 #include "devm.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 rvSession->ownLock = PR_FALSE; 85 rvSession->ownLock = PR_FALSE;
86 return rvSession; 86 return rvSession;
87 } 87 }
88 88
89 NSS_IMPLEMENT PRStatus 89 NSS_IMPLEMENT PRStatus
90 nssSession_Destroy 90 nssSession_Destroy
91 ( 91 (
92 nssSession *s 92 nssSession *s
93 ) 93 )
94 { 94 {
95 CK_RV ckrv = CKR_OK; 95 PRStatus rv = PR_SUCCESS;
96 if (s) { 96 if (s) {
97 if (s->isRW) { 97 if (s->isRW) {
98 PK11_RestoreROSession(s->slot->pk11slot, s->handle); 98 PK11_RestoreROSession(s->slot->pk11slot, s->handle);
99 } 99 }
100 » nss_ZFreeIf(s); 100 » rv = nss_ZFreeIf(s);
101 } 101 }
102 return (ckrv == CKR_OK) ? PR_SUCCESS : PR_FAILURE; 102 return rv;
103 } 103 }
104 104
105 static NSSSlot * 105 static NSSSlot *
106 nssSlot_CreateFromPK11SlotInfo(NSSTrustDomain *td, PK11SlotInfo *nss3slot) 106 nssSlot_CreateFromPK11SlotInfo(NSSTrustDomain *td, PK11SlotInfo *nss3slot)
107 { 107 {
108 NSSSlot *rvSlot; 108 NSSSlot *rvSlot;
109 NSSArena *arena; 109 NSSArena *arena;
110 arena = nssArena_Create(); 110 arena = nssArena_Create();
111 if (!arena) { 111 if (!arena) {
112 return NULL; 112 return NULL;
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 NSS_IMPLEMENT PRStatus 297 NSS_IMPLEMENT PRStatus
298 nssToken_NotifyCertsNotVisible 298 nssToken_NotifyCertsNotVisible
299 ( 299 (
300 NSSToken *tok 300 NSSToken *tok
301 ) 301 )
302 { 302 {
303 return nssTrustDomain_RemoveTokenCertsFromCache(tok->trustDomain, tok); 303 return nssTrustDomain_RemoveTokenCertsFromCache(tok->trustDomain, tok);
304 } 304 }
305 305
OLDNEW
« no previous file with comments | « nss/lib/nss/nss.h ('k') | nss/lib/pk11wrap/pk11cert.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698