Skip to content

Commit 2502407

Browse files
committed
sys/evp: add EVP_PKEY_settable_params
1 parent a255fb1 commit 2502407

File tree

1 file changed

+29
-0
lines changed
  • openssl-sys/src/handwritten

1 file changed

+29
-0
lines changed

openssl-sys/src/handwritten/evp.rs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,35 @@ cfg_if! {
704704
max_buf_sz: size_t,
705705
out_len: *mut size_t,
706706
) -> c_int;
707+
708+
pub fn EVP_PKEY_settable_params(pkey: *const EVP_PKEY) -> *const OSSL_PARAM;
709+
pub fn EVP_PKEY_set_params(pkey: *mut EVP_PKEY, params: *mut OSSL_PARAM) -> c_int;
710+
pub fn EVP_PKEY_set_int_param(
711+
pkey: *mut EVP_PKEY,
712+
key_name: *const c_char,
713+
in_val: c_int,
714+
) -> c_int;
715+
pub fn EVP_PKEY_set_size_t_param(
716+
pkey: *mut EVP_PKEY,
717+
key_name: *const c_char,
718+
in_val: size_t,
719+
) -> c_int;
720+
pub fn EVP_PKEY_set_bn_param(
721+
pkey: *mut EVP_PKEY,
722+
key_name: *const c_char,
723+
bn: *const BIGNUM,
724+
) -> c_int;
725+
pub fn EVP_PKEY_set_utf8_string_param(
726+
pkey: *mut EVP_PKEY,
727+
key_name: *const c_char,
728+
str: *const c_char,
729+
) -> c_int;
730+
pub fn EVP_PKEY_set_octet_string_param(
731+
pkey: *mut EVP_PKEY,
732+
key_name: *const c_char,
733+
buf: *const c_uchar,
734+
bsize: size_t,
735+
) -> c_int;
707736
}
708737
}
709738
}

0 commit comments

Comments
 (0)