@@ -9,10 +9,14 @@ extern "C" {
9
9
pub fn X509_LOOKUP_meth_free ( method : * mut X509_LOOKUP_METHOD ) ;
10
10
}
11
11
12
+ const_ptr_api ! {
13
+ extern "C" {
14
+ pub fn X509_LOOKUP_hash_dir ( ) -> #[ const_ptr_if( libressl400) ] X509_LOOKUP_METHOD ;
15
+ pub fn X509_LOOKUP_file ( ) -> #[ const_ptr_if( libressl400) ] X509_LOOKUP_METHOD ;
16
+ }
17
+ }
12
18
extern "C" {
13
19
pub fn X509_LOOKUP_free ( ctx : * mut X509_LOOKUP ) ;
14
- pub fn X509_LOOKUP_hash_dir ( ) -> * mut X509_LOOKUP_METHOD ;
15
- pub fn X509_LOOKUP_file ( ) -> * mut X509_LOOKUP_METHOD ;
16
20
pub fn X509_LOOKUP_ctrl (
17
21
ctx : * mut X509_LOOKUP ,
18
22
cmd : c_int ,
@@ -41,11 +45,6 @@ extern "C" {
41
45
42
46
pub fn X509_STORE_add_cert ( store : * mut X509_STORE , x : * mut X509 ) -> c_int ;
43
47
44
- pub fn X509_STORE_add_lookup (
45
- store : * mut X509_STORE ,
46
- meth : * mut X509_LOOKUP_METHOD ,
47
- ) -> * mut X509_LOOKUP ;
48
-
49
48
pub fn X509_STORE_set_default_paths ( store : * mut X509_STORE ) -> c_int ;
50
49
pub fn X509_STORE_set_flags ( store : * mut X509_STORE , flags : c_ulong ) -> c_int ;
51
50
pub fn X509_STORE_set_purpose ( ctx : * mut X509_STORE , purpose : c_int ) -> c_int ;
@@ -55,6 +54,10 @@ extern "C" {
55
54
56
55
const_ptr_api ! {
57
56
extern "C" {
57
+ pub fn X509_STORE_add_lookup (
58
+ store: * mut X509_STORE ,
59
+ meth: #[ const_ptr_if( libressl400) ] X509_LOOKUP_METHOD ,
60
+ ) -> * mut X509_LOOKUP ;
58
61
pub fn X509_STORE_set1_param ( store: * mut X509_STORE , pm: #[ const_ptr_if( ossl300) ] X509_VERIFY_PARAM ) -> c_int;
59
62
}
60
63
}
0 commit comments