41
41
#include "pkcs12t.h"
46
typedef SECItem * (* SEC_PKCS12GetPassword)(void *arg);
48
/* Decode functions */
50
* der_pfx is the der-encoded pfx item to import.
51
* pbef, and pbefarg are used to retrieve passwords for the HMAC,
52
* and any passwords needed for passing to PKCS5 encryption
54
* algorithm is the algorithm by which private keys are stored in
55
* the key database. this could be a specific algorithm or could
56
* be based on a global setting.
57
* slot is the slot to where the certificates will be placed. if NULL,
58
* the internal key slot is used.
59
* If the process is successful, a SECSuccess is returned, otherwise
63
SEC_PKCS12PutPFX(SECItem *der_pfx, SECItem *pwitem,
64
SEC_PKCS12NicknameCollisionCallback ncCall,
65
PK11SlotInfo *slot, void *wincx);
67
/* check the first two bytes of a file to make sure that it matches
68
* the desired header for a PKCS 12 file
70
PRBool SEC_PKCS12ValidData(char *buf, int bufLen, long int totalLength);