| 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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 SECItem *publicValue, PRBool token, PRBool sensitive, | 601 SECItem *publicValue, PRBool token, PRBool sensitive, |
| 602 CK_KEY_TYPE keyType, CK_ATTRIBUTE_TYPE *usage, int usageCount, | 602 CK_KEY_TYPE keyType, CK_ATTRIBUTE_TYPE *usage, int usageCount, |
| 603 void *wincx); | 603 void *wincx); |
| 604 SECStatus PK11_WrapPrivKey(PK11SlotInfo *slot, PK11SymKey *wrappingKey, | 604 SECStatus PK11_WrapPrivKey(PK11SlotInfo *slot, PK11SymKey *wrappingKey, |
| 605 SECKEYPrivateKey *privKey, CK_MECHANISM_TYPE wrapType
, | 605 SECKEYPrivateKey *privKey, CK_MECHANISM_TYPE wrapType
, |
| 606 SECItem *param, SECItem *wrappedKey, void *wincx); | 606 SECItem *param, SECItem *wrappedKey, void *wincx); |
| 607 /* | 607 /* |
| 608 * The caller of PK11_DEREncodePublicKey should free the returned SECItem with | 608 * The caller of PK11_DEREncodePublicKey should free the returned SECItem with |
| 609 * a SECITEM_FreeItem(..., PR_TRUE) call. | 609 * a SECITEM_FreeItem(..., PR_TRUE) call. |
| 610 */ | 610 */ |
| 611 SECItem* PK11_DEREncodePublicKey(SECKEYPublicKey *pubk); | 611 SECItem* PK11_DEREncodePublicKey(const SECKEYPublicKey *pubk); |
| 612 PK11SymKey* PK11_CopySymKeyForSigning(PK11SymKey *originalKey, | 612 PK11SymKey* PK11_CopySymKeyForSigning(PK11SymKey *originalKey, |
| 613 CK_MECHANISM_TYPE mech); | 613 CK_MECHANISM_TYPE mech); |
| 614 SECKEYPrivateKeyList* PK11_ListPrivKeysInSlot(PK11SlotInfo *slot, | 614 SECKEYPrivateKeyList* PK11_ListPrivKeysInSlot(PK11SlotInfo *slot, |
| 615 char *nickname, void *wincx); | 615 char *nickname, void *wincx); |
| 616 SECKEYPublicKeyList* PK11_ListPublicKeysInSlot(PK11SlotInfo *slot, | 616 SECKEYPublicKeyList* PK11_ListPublicKeysInSlot(PK11SlotInfo *slot, |
| 617 char *nickname); | 617 char *nickname); |
| 618 SECKEYPQGParams *PK11_GetPQGParamsFromPrivateKey(SECKEYPrivateKey *privKey); | 618 SECKEYPQGParams *PK11_GetPQGParamsFromPrivateKey(SECKEYPrivateKey *privKey); |
| 619 /* deprecated */ | 619 /* deprecated */ |
| 620 SECKEYPrivateKeyList* PK11_ListPrivateKeysInSlot(PK11SlotInfo *slot); | 620 SECKEYPrivateKeyList* PK11_ListPrivateKeysInSlot(PK11SlotInfo *slot); |
| 621 | 621 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 * a PBE algorithm ID. | 786 * a PBE algorithm ID. |
| 787 * Caller is responsible for freeing the return parameter (param). | 787 * Caller is responsible for freeing the return parameter (param). |
| 788 */ | 788 */ |
| 789 CK_MECHANISM_TYPE | 789 CK_MECHANISM_TYPE |
| 790 PK11_GetPBECryptoMechanism(SECAlgorithmID *algid, | 790 PK11_GetPBECryptoMechanism(SECAlgorithmID *algid, |
| 791 SECItem **param, SECItem *pwd); | 791 SECItem **param, SECItem *pwd); |
| 792 | 792 |
| 793 /********************************************************************** | 793 /********************************************************************** |
| 794 * Functions to manage secmod flags | 794 * Functions to manage secmod flags |
| 795 **********************************************************************/ | 795 **********************************************************************/ |
| 796 PK11DefaultArrayEntry *PK11_GetDefaultArray(int *size); | 796 const PK11DefaultArrayEntry *PK11_GetDefaultArray(int *size); |
| 797 SECStatus PK11_UpdateSlotAttribute(PK11SlotInfo *slot, | 797 SECStatus PK11_UpdateSlotAttribute(PK11SlotInfo *slot, |
| 798 const PK11DefaultArrayEntry *entry, | 798 const PK11DefaultArrayEntry *entry, |
| 799 PRBool add); | 799 PRBool add); |
| 800 | 800 |
| 801 /********************************************************************** | 801 /********************************************************************** |
| 802 * Functions to look at PKCS #11 dependent data | 802 * Functions to look at PKCS #11 dependent data |
| 803 **********************************************************************/ | 803 **********************************************************************/ |
| 804 PK11GenericObject *PK11_FindGenericObjects(PK11SlotInfo *slot, | 804 PK11GenericObject *PK11_FindGenericObjects(PK11SlotInfo *slot, |
| 805 CK_OBJECT_CLASS objClass); | 805 CK_OBJECT_CLASS objClass); |
| 806 PK11GenericObject *PK11_GetNextGenericObject(PK11GenericObject *object); | 806 PK11GenericObject *PK11_GetNextGenericObject(PK11GenericObject *object); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 PK11_GetLowLevelKeyIDForCert(PK11SlotInfo *slot, | 857 PK11_GetLowLevelKeyIDForCert(PK11SlotInfo *slot, |
| 858 CERTCertificate *cert, void *pwarg); | 858 CERTCertificate *cert, void *pwarg); |
| 859 SECItem * | 859 SECItem * |
| 860 PK11_GetLowLevelKeyIDForPrivateKey(SECKEYPrivateKey *key); | 860 PK11_GetLowLevelKeyIDForPrivateKey(SECKEYPrivateKey *key); |
| 861 | 861 |
| 862 PRBool SECMOD_HasRootCerts(void); | 862 PRBool SECMOD_HasRootCerts(void); |
| 863 | 863 |
| 864 SEC_END_PROTOS | 864 SEC_END_PROTOS |
| 865 | 865 |
| 866 #endif | 866 #endif |
| OLD | NEW |