#ifndef __P12_P12_H__
#define __P12_P12_H__
#include <CoreFoundation/CoreFoundation.h>
#include <Security/Security.h>
extern int p12ParseTop(
CSSM_DATA &rawBlob,
CSSM_CSP_HANDLE cspHand,
CFStringRef pwd,
bool verbose);
extern OSStatus p12Decode(
const CSSM_DATA &pfx,
CSSM_CSP_HANDLE cspHand,
CFStringRef pwd, bool usePassKey, bool verbose,
unsigned loops);
extern int p12Reencode(
const CSSM_DATA &pfx,
CSSM_CSP_HANDLE cspHand,
CFStringRef pwd, bool verbose,
unsigned loops);
extern int p12Import(
const char *pfxFile,
const char *kcName,
CFStringRef pwd, bool usePassKey, const char *kcPwd);
extern int p12Export(
const char *pfxFile,
const char *kcName,
CFStringRef pwd, bool usePassKey, const char *kcPwd, bool noPrompt);
#endif