1 use core_foundation_sys::string::CFStringRef;
2 
3 extern "C" {
4     pub static kSecClass: CFStringRef;
5     pub static kSecClassInternetPassword: CFStringRef;
6     pub static kSecClassGenericPassword: CFStringRef;
7     pub static kSecClassCertificate: CFStringRef;
8     pub static kSecClassKey: CFStringRef;
9     pub static kSecClassIdentity: CFStringRef;
10 
11     pub static kSecMatchLimit: CFStringRef;
12     pub static kSecMatchLimitAll: CFStringRef;
13 
14     pub static kSecReturnData: CFStringRef;
15     pub static kSecReturnAttributes: CFStringRef;
16     pub static kSecReturnRef: CFStringRef;
17     pub static kSecReturnPersistentRef: CFStringRef;
18 
19     pub static kSecMatchSearchList: CFStringRef;
20 
21     pub static kSecAttrKeyType: CFStringRef;
22     pub static kSecAttrLabel: CFStringRef;
23 
24     pub static kSecAttrKeySizeInBits: CFStringRef;
25 
26     pub static kSecAttrKeyTypeECSECPrimeRandom: CFStringRef;
27     pub static kSecAttrKeyTypeRSA: CFStringRef;
28     #[cfg(target_os = "macos")]
29     pub static kSecAttrKeyTypeDSA: CFStringRef;
30     #[cfg(target_os = "macos")]
31     pub static kSecAttrKeyTypeAES: CFStringRef;
32     #[cfg(target_os = "macos")]
33     pub static kSecAttrKeyTypeDES: CFStringRef;
34     #[cfg(target_os = "macos")]
35     pub static kSecAttrKeyType3DES: CFStringRef;
36     #[cfg(target_os = "macos")]
37     pub static kSecAttrKeyTypeRC4: CFStringRef;
38     #[cfg(target_os = "macos")]
39     pub static kSecAttrKeyTypeRC2: CFStringRef;
40     #[cfg(target_os = "macos")]
41     pub static kSecAttrKeyTypeCAST: CFStringRef;
42     #[cfg(feature = "OSX_10_9")]
43     pub static kSecAttrKeyTypeEC: CFStringRef;
44 
45     pub static kSecAttrAccessGroup: CFStringRef;
46     pub static kSecAttrAccessGroupToken: CFStringRef;
47 }
48