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