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