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 #ifndef _PK11PUB_H_ | 4 #ifndef _PK11PUB_H_ |
5 #define _PK11PUB_H_ | 5 #define _PK11PUB_H_ |
6 #include "plarena.h" | 6 #include "plarena.h" |
7 #include "seccomon.h" | 7 #include "seccomon.h" |
8 #include "secoidt.h" | 8 #include "secoidt.h" |
9 #include "secdert.h" | 9 #include "secdert.h" |
10 #include "keyt.h" | 10 #include "keyt.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 PRBool PK11_IsFIPS(void); | 140 PRBool PK11_IsFIPS(void); |
141 SECMODModule *PK11_GetModule(PK11SlotInfo *slot); | 141 SECMODModule *PK11_GetModule(PK11SlotInfo *slot); |
142 | 142 |
143 /********************************************************************* | 143 /********************************************************************* |
144 * Slot mapping utility functions. | 144 * Slot mapping utility functions. |
145 *********************************************************************/ | 145 *********************************************************************/ |
146 PRBool PK11_IsPresent(PK11SlotInfo *slot); | 146 PRBool PK11_IsPresent(PK11SlotInfo *slot); |
147 PRBool PK11_DoesMechanism(PK11SlotInfo *slot, CK_MECHANISM_TYPE type); | 147 PRBool PK11_DoesMechanism(PK11SlotInfo *slot, CK_MECHANISM_TYPE type); |
148 PK11SlotList * PK11_GetAllTokens(CK_MECHANISM_TYPE type,PRBool needRW, | 148 PK11SlotList * PK11_GetAllTokens(CK_MECHANISM_TYPE type,PRBool needRW, |
149 PRBool loadCerts, void *wincx); | 149 PRBool loadCerts, void *wincx); |
150 PK11SlotInfo *PK11_GetBestSlotMultiple(CK_MECHANISM_TYPE *type, int count, | 150 PK11SlotInfo *PK11_GetBestSlotMultipleWithAttributes(CK_MECHANISM_TYPE *type, |
151 » » » » » » » void *wincx); | 151 » » CK_FLAGS *mechFlag, unsigned int *keySize, |
| 152 » » unsigned int count, void *wincx); |
| 153 PK11SlotInfo *PK11_GetBestSlotMultiple(CK_MECHANISM_TYPE *type, |
| 154 » » » » » unsigned int count, void *wincx); |
152 PK11SlotInfo *PK11_GetBestSlot(CK_MECHANISM_TYPE type, void *wincx); | 155 PK11SlotInfo *PK11_GetBestSlot(CK_MECHANISM_TYPE type, void *wincx); |
| 156 PK11SlotInfo *PK11_GetBestSlotWithAttributes(CK_MECHANISM_TYPE type, |
| 157 CK_FLAGS mechFlag, unsigned int keySize, void *wincx); |
153 CK_MECHANISM_TYPE PK11_GetBestWrapMechanism(PK11SlotInfo *slot); | 158 CK_MECHANISM_TYPE PK11_GetBestWrapMechanism(PK11SlotInfo *slot); |
154 int PK11_GetBestKeyLength(PK11SlotInfo *slot, CK_MECHANISM_TYPE type); | 159 int PK11_GetBestKeyLength(PK11SlotInfo *slot, CK_MECHANISM_TYPE type); |
155 | 160 |
156 /* | 161 /* |
157 * Open a new database using the softoken. The caller is responsible for making | 162 * Open a new database using the softoken. The caller is responsible for making |
158 * sure the module spec is correct and usable. The caller should ask for one | 163 * sure the module spec is correct and usable. The caller should ask for one |
159 * new database per call if the caller wants to get meaningful information | 164 * new database per call if the caller wants to get meaningful information |
160 * about the new database. | 165 * about the new database. |
161 * | 166 * |
162 * moduleSpec is the same data that you would pass to softoken at | 167 * moduleSpec is the same data that you would pass to softoken at |
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 PK11_GetLowLevelKeyIDForCert(PK11SlotInfo *slot, | 818 PK11_GetLowLevelKeyIDForCert(PK11SlotInfo *slot, |
814 CERTCertificate *cert, void *pwarg); | 819 CERTCertificate *cert, void *pwarg); |
815 SECItem * | 820 SECItem * |
816 PK11_GetLowLevelKeyIDForPrivateKey(SECKEYPrivateKey *key); | 821 PK11_GetLowLevelKeyIDForPrivateKey(SECKEYPrivateKey *key); |
817 | 822 |
818 PRBool SECMOD_HasRootCerts(void); | 823 PRBool SECMOD_HasRootCerts(void); |
819 | 824 |
820 SEC_END_PROTOS | 825 SEC_END_PROTOS |
821 | 826 |
822 #endif | 827 #endif |
OLD | NEW |