]> git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/p12/p12GetPassKey.h
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / clxutils / p12 / p12GetPassKey.h
1 /*
2 * p12GetPassKey.h - get a CSSM_ALGID_SECURE_PASSPHRASE key for encode/decode
3 */
4
5 #ifndef __P12_GET_PASSKEY_H__
6 #define __P12_GET_PASSKEY_H__
7
8 #include <CoreFoundation/CoreFoundation.h>
9 #include <Security/Security.h>
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 typedef enum {
16 GPK_Decode = 1,
17 GPK_Encode
18 } GPK_Type;
19
20 OSStatus p12GetPassKey(
21 CSSM_CSP_HANDLE cspHand,
22 GPK_Type gpkType,
23 bool isRawCsp,
24 CSSM_KEY *passKey); // RETURNED
25
26 #ifdef __cplusplus
27 }
28 #endif
29
30 #endif /* __P12_GET_PASSKEY_H__ */