Mac OS 9
KeychainHI.h
Go to the documentation of this file.
1 
19 #ifndef __KEYCHAINHI__
20 #define __KEYCHAINHI__
21 
22 #ifndef __KEYCHAINCORE__
23 #include <KeychainCore.h>
24 #endif
25 
26 #ifndef __CFSTRING__
27 #include <CFString.h>
28 #endif
29 
30 #ifndef __CFARRAY__
31 #include <CFArray.h>
32 #endif
33 
34 #ifndef __CFDATE__
35 #include <CFDate.h>
36 #endif
37 
38 #if PRAGMA_ONCE
39 #pragma once
40 #endif
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 #if PRAGMA_IMPORT
47 #pragma import on
48 #endif
49 
50 #if PRAGMA_STRUCT_ALIGN
51 #pragma options align = mac68k
52 #elif PRAGMA_STRUCT_PACKPUSH
53 #pragma pack(push, 2)
54 #elif PRAGMA_STRUCT_PACK
55 #pragma pack(2)
56 #endif
57 
67 OSStatus
68 KCUnlock(KCRef keychain,
69  StringPtr password);
80 OSStatus
81 KCAddItem(KCItemRef item);
82 
92 OSStatus
94  KCRef *keychain);
105 OSStatus
106 KCChangeSettings(KCRef keychain);
107 
116 OSStatus
117 kcunlock(KCRef keychain,
118  const char *password);
128 OSStatus
129 kccreatekeychain(const char *password,
130  KCRef *keychain);
133 #if CALL_NOT_IN_CARBON
142 OSStatus
143 KCFindX509Certificates(KCRef keychain, CFStringRef name,
144  CFStringRef emailAddress, KCCertSearchOptions options,
145  CFMutableArrayRef *certificateItems);
155 OSStatus
156 KCChooseCertificate(CFArrayRef items, KCItemRef *certificate,
157  CFArrayRef policyOIDs, KCVerifyStopOn stopOn);
158 
159 #endif
161 #if PRAGMA_STRUCT_ALIGN
162 #pragma options align = reset
163 #elif PRAGMA_STRUCT_PACKPUSH
164 #pragma pack(pop)
165 #elif PRAGMA_STRUCT_PACK
166 #pragma pack()
167 #endif
168 
169 #ifdef PRAGMA_IMPORT_OFF
170 #pragma import off
171 #elif PRAGMA_IMPORT
172 #pragma import reset
173 #endif
174 
175 #ifdef __cplusplus
176 }
177 #endif
178 
179 #endif
Keychain low-level Interfaces.
OSStatus kccreatekeychain(const char *password, KCRef *keychain)
OSStatus KCChangeSettings(KCRef keychain)
OSStatus KCAddItem(KCItemRef item)
OSStatus kcunlock(KCRef keychain, const char *password)
OSStatus KCCreateKeychain(StringPtr password, KCRef *keychain)
OSStatus KCUnlock(KCRef keychain, StringPtr password)
OSStatus KCChooseCertificate(CFArrayRef items, KCItemRef *certificate, CFArrayRef policyOIDs, KCVerifyStopOn stopOn)
OSStatus KCFindX509Certificates(KCRef keychain, CFStringRef name, CFStringRef emailAddress, KCCertSearchOptions options, CFMutableArrayRef *certificateItems)
unsigned char * StringPtr
Definition: MacTypes.h:477