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 #ifdef DEBUG | |
6 static const char CVS_ID[] = "@(#) $RCSfile$ $Revision$ $Date$"; | |
7 #endif /* DEBUG */ | |
8 | |
9 #include "pkcs11.h" | 5 #include "pkcs11.h" |
10 | 6 |
11 #ifndef DEVM_H | 7 #ifndef DEVM_H |
12 #include "devm.h" | 8 #include "devm.h" |
13 #endif /* DEVM_H */ | 9 #endif /* DEVM_H */ |
14 | 10 |
15 #ifndef CKHELPER_H | 11 #ifndef CKHELPER_H |
16 #include "ckhelper.h" | 12 #include "ckhelper.h" |
17 #endif /* CKHELPER_H */ | 13 #endif /* CKHELPER_H */ |
18 | 14 |
(...skipping 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1575 theClass = CKO_PRIVATE_KEY; | 1571 theClass = CKO_PRIVATE_KEY; |
1576 if (!nssSlot_IsLoggedIn(token->slot)) { | 1572 if (!nssSlot_IsLoggedIn(token->slot)) { |
1577 theClass = CKO_PUBLIC_KEY; | 1573 theClass = CKO_PUBLIC_KEY; |
1578 } | 1574 } |
1579 if (PK11_MatchItem(token->pk11slot, instance->handle, theClass) | 1575 if (PK11_MatchItem(token->pk11slot, instance->handle, theClass) |
1580 != CK_INVALID_HANDLE) { | 1576 != CK_INVALID_HANDLE) { |
1581 return PR_TRUE; | 1577 return PR_TRUE; |
1582 } | 1578 } |
1583 return PR_FALSE; | 1579 return PR_FALSE; |
1584 } | 1580 } |
OLD | NEW |