mirror of
https://github.com/lbr77/SideImpactor.git
synced 2026-05-06 11:14:01 -04:00
refactor directory
This commit is contained in:
32
wasm/openssl/vendor/openssl-sys/src/dh.rs
vendored
Normal file
32
wasm/openssl/vendor/openssl-sys/src/dh.rs
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
use crate::libc::*;
|
||||
use std::ptr;
|
||||
|
||||
use super::super::*;
|
||||
|
||||
cfg_if! {
|
||||
if #[cfg(not(ossl300))] {
|
||||
pub unsafe fn EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx: *mut EVP_PKEY_CTX, len: c_int) -> c_int {
|
||||
EVP_PKEY_CTX_ctrl(
|
||||
ctx,
|
||||
EVP_PKEY_DH,
|
||||
EVP_PKEY_OP_PARAMGEN,
|
||||
EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN,
|
||||
len,
|
||||
ptr::null_mut(),
|
||||
)
|
||||
}
|
||||
pub unsafe fn EVP_PKEY_CTX_set_dh_paramgen_generator(ctx: *mut EVP_PKEY_CTX, gen: c_int) -> c_int {
|
||||
EVP_PKEY_CTX_ctrl(
|
||||
ctx,
|
||||
EVP_PKEY_DH,
|
||||
EVP_PKEY_OP_PARAMGEN,
|
||||
EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR,
|
||||
gen,
|
||||
ptr::null_mut(),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub const EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN: c_int = EVP_PKEY_ALG_CTRL + 1;
|
||||
pub const EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR: c_int = EVP_PKEY_ALG_CTRL + 2;
|
||||
Reference in New Issue
Block a user