| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |