variant_ssl_sys/handwritten/
params.rs1use 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_int(
53 bld: *mut OSSL_PARAM_BLD,
54 key: *const c_char,
55 val: c_int,
56 ) -> c_int;
57 pub fn OSSL_PARAM_BLD_push_uint(
58 bld: *mut OSSL_PARAM_BLD,
59 key: *const c_char,
60 val: c_uint,
61 ) -> c_int;
62 pub fn OSSL_PARAM_BLD_push_size_t(
63 bld: *mut OSSL_PARAM_BLD,
64 key: *const c_char,
65 val: size_t,
66 ) -> c_int;
67 pub fn OSSL_PARAM_BLD_push_BN(
68 bld: *mut OSSL_PARAM_BLD,
69 key: *const c_char,
70 bn: *const BIGNUM,
71 ) -> c_int;
72 pub fn OSSL_PARAM_BLD_push_BN_pad(
73 bld: *mut OSSL_PARAM_BLD,
74 key: *const c_char,
75 bn: *const BIGNUM,
76 sz: size_t,
77 ) -> c_int;
78 pub fn OSSL_PARAM_BLD_push_utf8_string(
79 bld: *mut OSSL_PARAM_BLD,
80 key: *const c_char,
81 buf: *const c_char,
82 bsize: size_t,
83 ) -> c_int;
84 pub fn OSSL_PARAM_BLD_push_utf8_ptr(
85 bld: *mut OSSL_PARAM_BLD,
86 key: *const c_char,
87 buf: *mut c_char,
88 bsize: size_t,
89 ) -> c_int;
90 pub fn OSSL_PARAM_BLD_push_octet_string(
91 bld: *mut OSSL_PARAM_BLD,
92 key: *const c_char,
93 buf: *const c_void,
94 bsize: size_t,
95 ) -> c_int;
96 pub fn OSSL_PARAM_BLD_push_octet_ptr(
97 bld: *mut OSSL_PARAM_BLD,
98 key: *const c_char,
99 buf: *mut c_void,
100 bsize: size_t,
101 ) -> c_int;
102}