openssl_sys/handwritten/
params.rs1use super::super::*;
2use libc::size_t;
3use std::ffi::{c_char, c_int, c_uint, c_void};
4
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_octet_string(
15 key: *const c_char,
16 buf: *mut c_void,
17 bsize: size_t,
18 ) -> OSSL_PARAM;
19
20 pub fn OSSL_PARAM_modified(p: *const OSSL_PARAM) -> c_int;
21
22 pub fn OSSL_PARAM_locate(p: *mut OSSL_PARAM, key: *const c_char) -> *mut OSSL_PARAM;
23 pub fn OSSL_PARAM_locate_const(
24 params: *const OSSL_PARAM,
25 key: *const c_char,
26 ) -> *const OSSL_PARAM;
27 pub fn OSSL_PARAM_get_BN(p: *const OSSL_PARAM, val: *mut *mut BIGNUM) -> c_int;
28 pub fn OSSL_PARAM_get_utf8_string(
29 p: *const OSSL_PARAM,
30 val: *mut *mut c_char,
31 max_len: usize,
32 ) -> c_int;
33 pub fn OSSL_PARAM_get_utf8_string_ptr(p: *const OSSL_PARAM, val: *mut *const c_char) -> c_int;
34 pub fn OSSL_PARAM_get_octet_string(
35 p: *const OSSL_PARAM,
36 val: *mut *mut c_void,
37 max_len: usize,
38 used_len: *mut usize,
39 ) -> c_int;
40 pub fn OSSL_PARAM_get_octet_string_ptr(
41 p: *const OSSL_PARAM,
42 val: *mut *const c_void,
43 used_len: *mut usize,
44 ) -> c_int;
45
46 pub fn OSSL_PARAM_BLD_new() -> *mut OSSL_PARAM_BLD;
47 pub fn OSSL_PARAM_BLD_free(bld: *mut OSSL_PARAM_BLD);
48 pub fn OSSL_PARAM_BLD_to_param(bld: *mut OSSL_PARAM_BLD) -> *mut OSSL_PARAM;
49 pub fn OSSL_PARAM_BLD_push_int(
50 bld: *mut OSSL_PARAM_BLD,
51 key: *const c_char,
52 val: c_int,
53 ) -> c_int;
54 pub fn OSSL_PARAM_BLD_push_uint(
55 bld: *mut OSSL_PARAM_BLD,
56 key: *const c_char,
57 val: c_uint,
58 ) -> c_int;
59 pub fn OSSL_PARAM_BLD_push_size_t(
60 bld: *mut OSSL_PARAM_BLD,
61 key: *const c_char,
62 val: size_t,
63 ) -> c_int;
64 pub fn OSSL_PARAM_BLD_push_BN(
65 bld: *mut OSSL_PARAM_BLD,
66 key: *const c_char,
67 bn: *const BIGNUM,
68 ) -> c_int;
69 pub fn OSSL_PARAM_BLD_push_BN_pad(
70 bld: *mut OSSL_PARAM_BLD,
71 key: *const c_char,
72 bn: *const BIGNUM,
73 sz: size_t,
74 ) -> c_int;
75 pub fn OSSL_PARAM_BLD_push_utf8_string(
76 bld: *mut OSSL_PARAM_BLD,
77 key: *const c_char,
78 buf: *const c_char,
79 bsize: size_t,
80 ) -> c_int;
81 pub fn OSSL_PARAM_BLD_push_utf8_ptr(
82 bld: *mut OSSL_PARAM_BLD,
83 key: *const c_char,
84 buf: *mut c_char,
85 bsize: size_t,
86 ) -> c_int;
87 pub fn OSSL_PARAM_BLD_push_octet_string(
88 bld: *mut OSSL_PARAM_BLD,
89 key: *const c_char,
90 buf: *const c_void,
91 bsize: size_t,
92 ) -> c_int;
93 pub fn OSSL_PARAM_BLD_push_octet_ptr(
94 bld: *mut OSSL_PARAM_BLD,
95 key: *const c_char,
96 buf: *mut c_void,
97 bsize: size_t,
98 ) -> c_int;
99}