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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 SECStatus PK11_ImportEncryptedPrivateKeyInfo(PK11SlotInfo *slot, | 552 SECStatus PK11_ImportEncryptedPrivateKeyInfo(PK11SlotInfo *slot, |
553 SECKEYEncryptedPrivateKeyInfo *epki, SECItem *pwitem, | 553 SECKEYEncryptedPrivateKeyInfo *epki, SECItem *pwitem, |
554 SECItem *nickname, SECItem *publicValue, PRBool isPerm, | 554 SECItem *nickname, SECItem *publicValue, PRBool isPerm, |
555 PRBool isPrivate, KeyType type, | 555 PRBool isPrivate, KeyType type, |
556 unsigned int usage, void *wincx); | 556 unsigned int usage, void *wincx); |
557 SECStatus PK11_ImportEncryptedPrivateKeyInfoAndReturnKey(PK11SlotInfo *slot, | 557 SECStatus PK11_ImportEncryptedPrivateKeyInfoAndReturnKey(PK11SlotInfo *slot, |
558 SECKEYEncryptedPrivateKeyInfo *epki, SECItem *pwitem, | 558 SECKEYEncryptedPrivateKeyInfo *epki, SECItem *pwitem, |
559 SECItem *nickname, SECItem *publicValue, PRBool isPerm, | 559 SECItem *nickname, SECItem *publicValue, PRBool isPerm, |
560 PRBool isPrivate, KeyType type, | 560 PRBool isPrivate, KeyType type, |
561 unsigned int usage, SECKEYPrivateKey** privk, void *wincx); | 561 unsigned int usage, SECKEYPrivateKey** privk, void *wincx); |
| 562 SECItem *PK11_ExportDERPrivateKeyInfo(SECKEYPrivateKey *pk, void *wincx); |
| 563 SECKEYPrivateKeyInfo *PK11_ExportPrivKeyInfo( |
| 564 SECKEYPrivateKey *pk, void *wincx); |
562 SECKEYPrivateKeyInfo *PK11_ExportPrivateKeyInfo( | 565 SECKEYPrivateKeyInfo *PK11_ExportPrivateKeyInfo( |
563 CERTCertificate *cert, void *wincx); | 566 CERTCertificate *cert, void *wincx); |
564 SECKEYEncryptedPrivateKeyInfo *PK11_ExportEncryptedPrivKeyInfo( | 567 SECKEYEncryptedPrivateKeyInfo *PK11_ExportEncryptedPrivKeyInfo( |
565 PK11SlotInfo *slot, SECOidTag algTag, SECItem *pwitem, | 568 PK11SlotInfo *slot, SECOidTag algTag, SECItem *pwitem, |
566 SECKEYPrivateKey *pk, int iteration, void *wincx); | 569 SECKEYPrivateKey *pk, int iteration, void *wincx); |
567 SECKEYEncryptedPrivateKeyInfo *PK11_ExportEncryptedPrivateKeyInfo( | 570 SECKEYEncryptedPrivateKeyInfo *PK11_ExportEncryptedPrivateKeyInfo( |
568 PK11SlotInfo *slot, SECOidTag algTag, SECItem *pwitem, | 571 PK11SlotInfo *slot, SECOidTag algTag, SECItem *pwitem, |
569 CERTCertificate *cert, int iteration, void *wincx); | 572 CERTCertificate *cert, int iteration, void *wincx); |
570 SECKEYPrivateKey *PK11_FindKeyByDERCert(PK11SlotInfo *slot, | 573 SECKEYPrivateKey *PK11_FindKeyByDERCert(PK11SlotInfo *slot, |
571 CERTCertificate *cert, void *wincx); | 574 CERTCertificate *cert, void *wincx); |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 PK11_GetLowLevelKeyIDForCert(PK11SlotInfo *slot, | 837 PK11_GetLowLevelKeyIDForCert(PK11SlotInfo *slot, |
835 CERTCertificate *cert, void *pwarg); | 838 CERTCertificate *cert, void *pwarg); |
836 SECItem * | 839 SECItem * |
837 PK11_GetLowLevelKeyIDForPrivateKey(SECKEYPrivateKey *key); | 840 PK11_GetLowLevelKeyIDForPrivateKey(SECKEYPrivateKey *key); |
838 | 841 |
839 PRBool SECMOD_HasRootCerts(void); | 842 PRBool SECMOD_HasRootCerts(void); |
840 | 843 |
841 SEC_END_PROTOS | 844 SEC_END_PROTOS |
842 | 845 |
843 #endif | 846 #endif |
OLD | NEW |