@@ -2,31 +2,31 @@ use core_foundation_sys::base::CFTypeID;
2
2
use core_foundation_sys:: data:: CFDataRef ;
3
3
use core_foundation_sys:: dictionary:: CFDictionaryRef ;
4
4
use core_foundation_sys:: error:: CFErrorRef ;
5
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
5
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
6
6
use core_foundation_sys:: string:: CFStringRef ;
7
7
8
8
use crate :: base:: SecKeyRef ;
9
9
10
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
10
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
11
11
pub type SecKeyAlgorithm = CFStringRef ;
12
12
13
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
13
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
14
14
pub type SecKeyOperationType = u32 ;
15
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
15
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
16
16
pub const kSecKeyOperationTypeSign: SecKeyOperationType = 0 ;
17
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
17
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
18
18
pub const kSecKeyOperationTypeVerify: SecKeyOperationType = 1 ;
19
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
19
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
20
20
pub const kSecKeyOperationTypeEncrypt: SecKeyOperationType = 2 ;
21
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
21
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
22
22
pub const kSecKeyOperationTypeDecrypt: SecKeyOperationType = 3 ;
23
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
23
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
24
24
pub const kSecKeyOperationTypeKeyExchange: SecKeyOperationType = 4 ;
25
25
26
26
extern "C" {
27
27
pub fn SecKeyGetTypeID ( ) -> CFTypeID ;
28
28
29
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
29
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
30
30
pub fn SecKeyCreateRandomKey ( parameters : CFDictionaryRef , error : * mut CFErrorRef ) -> SecKeyRef ;
31
31
32
32
#[ cfg( target_os = "macos" ) ]
@@ -36,22 +36,22 @@ extern "C" {
36
36
error : * mut CFErrorRef ,
37
37
) -> SecKeyRef ;
38
38
39
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
39
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
40
40
pub fn SecKeyCopyExternalRepresentation ( key : SecKeyRef , error : * mut CFErrorRef ) -> CFDataRef ;
41
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
41
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
42
42
pub fn SecKeyCopyAttributes ( key : SecKeyRef ) -> CFDictionaryRef ;
43
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
43
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
44
44
pub fn SecKeyCopyPublicKey ( key : SecKeyRef ) -> SecKeyRef ;
45
45
46
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
46
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
47
47
pub fn SecKeyCreateSignature (
48
48
key : SecKeyRef ,
49
49
algorithm : SecKeyAlgorithm ,
50
50
dataToSign : CFDataRef ,
51
51
error : * mut CFErrorRef ,
52
52
) -> CFDataRef ;
53
53
54
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
54
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
55
55
pub fn SecKeyVerifySignature (
56
56
key : SecKeyRef ,
57
57
algorithm : SecKeyAlgorithm ,
@@ -60,15 +60,15 @@ extern "C" {
60
60
error : * mut CFErrorRef ,
61
61
) -> core_foundation_sys:: base:: Boolean ;
62
62
63
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
63
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
64
64
pub fn SecKeyIsAlgorithmSupported (
65
65
key : SecKeyRef ,
66
66
operation : SecKeyOperationType ,
67
67
algorithm : SecKeyAlgorithm ,
68
68
) -> core_foundation_sys:: base:: Boolean ;
69
69
}
70
70
71
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
71
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
72
72
macro_rules! names {
73
73
( $( $i: ident => $x: ident) ,* ) => {
74
74
extern "C" {
@@ -91,7 +91,7 @@ macro_rules! names {
91
91
}
92
92
}
93
93
94
- #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" ) ) ]
94
+ #[ cfg( any( feature = "OSX_10_12" , target_os = "ios" , target_os = "tvos" , target_os = "watchos" , target_os = "visionos" ) ) ]
95
95
names ! {
96
96
ECIESEncryptionStandardX963SHA1AESGCM => kSecKeyAlgorithmECIESEncryptionStandardX963SHA1AESGCM,
97
97
ECIESEncryptionStandardX963SHA224AESGCM => kSecKeyAlgorithmECIESEncryptionStandardX963SHA224AESGCM,
0 commit comments