variant_ssl_sys/handwritten/
params.rs

1use super::super::*;
2use libc::*;
3
4#[cfg(ossl300)]
5extern "C" {
6    pub fn OSSL_PARAM_free(p: *mut OSSL_PARAM);
7    pub fn OSSL_PARAM_dup(params: *const OSSL_PARAM) -> *mut OSSL_PARAM;
8    pub fn OSSL_PARAM_merge(
9        params: *const OSSL_PARAM,
10        params1: *const OSSL_PARAM,
11    ) -> *mut OSSL_PARAM;
12    pub fn OSSL_PARAM_construct_uint(key: *const c_char, buf: *mut c_uint) -> OSSL_PARAM;
13    pub fn OSSL_PARAM_construct_end() -> OSSL_PARAM;
14    pub fn OSSL_PARAM_construct_utf8_string(
15        key: *const c_char,
16        buf: *mut c_char,
17        bsize: usize,
18    ) -> OSSL_PARAM;
19    pub fn OSSL_PARAM_construct_octet_string(
20        key: *const c_char,
21        buf: *mut c_void,
22        bsize: usize,
23    ) -> OSSL_PARAM;
24
25    pub fn OSSL_PARAM_locate(p: *mut OSSL_PARAM, key: *const c_char) -> *mut OSSL_PARAM;
26    pub fn OSSL_PARAM_locate_const(
27        params: *const OSSL_PARAM,
28        key: *const c_char,
29    ) -> *const OSSL_PARAM;
30    pub fn OSSL_PARAM_get_BN(p: *const OSSL_PARAM, val: *mut *mut BIGNUM) -> c_int;
31    pub fn OSSL_PARAM_get_utf8_string(
32        p: *const OSSL_PARAM,
33        val: *mut *mut c_char,
34        max_len: usize,
35    ) -> c_int;
36    pub fn OSSL_PARAM_get_utf8_string_ptr(p: *const OSSL_PARAM, val: *mut *const c_char) -> c_int;
37    pub fn OSSL_PARAM_get_octet_string(
38        p: *const OSSL_PARAM,
39        val: *mut *mut c_void,
40        max_len: usize,
41        used_len: *mut usize,
42    ) -> c_int;
43    pub fn OSSL_PARAM_get_octet_string_ptr(
44        p: *const OSSL_PARAM,
45        val: *mut *const c_void,
46        used_len: *mut usize,
47    ) -> c_int;
48
49    pub fn OSSL_PARAM_BLD_new() -> *mut OSSL_PARAM_BLD;
50    pub fn OSSL_PARAM_BLD_free(bld: *mut OSSL_PARAM_BLD);
51    pub fn OSSL_PARAM_BLD_to_param(bld: *mut OSSL_PARAM_BLD) -> *mut OSSL_PARAM;
52    pub fn OSSL_PARAM_BLD_push_uint(
53        bld: *mut OSSL_PARAM_BLD,
54        key: *const c_char,
55        val: c_uint,
56    ) -> c_int;
57    pub fn OSSL_PARAM_BLD_push_size_t(
58        bld: *mut OSSL_PARAM_BLD,
59        key: *const c_char,
60        val: size_t,
61    ) -> c_int;
62    pub fn OSSL_PARAM_BLD_push_BN(
63        bld: *mut OSSL_PARAM_BLD,
64        key: *const c_char,
65        bn: *const BIGNUM,
66    ) -> c_int;
67    pub fn OSSL_PARAM_BLD_push_BN_pad(
68        bld: *mut OSSL_PARAM_BLD,
69        key: *const c_char,
70        bn: *const BIGNUM,
71        sz: size_t,
72    ) -> c_int;
73    pub fn OSSL_PARAM_BLD_push_utf8_string(
74        bld: *mut OSSL_PARAM_BLD,
75        key: *const c_char,
76        buf: *const c_char,
77        bsize: size_t,
78    ) -> c_int;
79    pub fn OSSL_PARAM_BLD_push_utf8_ptr(
80        bld: *mut OSSL_PARAM_BLD,
81        key: *const c_char,
82        buf: *mut c_char,
83        bsize: size_t,
84    ) -> c_int;
85    pub fn OSSL_PARAM_BLD_push_octet_string(
86        bld: *mut OSSL_PARAM_BLD,
87        key: *const c_char,
88        buf: *const c_void,
89        bsize: size_t,
90    ) -> c_int;
91    pub fn OSSL_PARAM_BLD_push_octet_ptr(
92        bld: *mut OSSL_PARAM_BLD,
93        key: *const c_char,
94        buf: *mut c_void,
95        bsize: size_t,
96    ) -> c_int;
97}