debian/rust-vendor/openssl-sys/src/dsa.rs
raw| 1 | use std::ffi::c_int; |
| 2 | use std::ptr; |
| 3 | |
| 4 | use super::super::*; |
| 5 | |
| 6 | cfg_if! { |
| 7 | if #[cfg(not(ossl300))] { |
| 8 | pub unsafe fn EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx: *mut EVP_PKEY_CTX, nbits: c_int) -> c_int { |
| 9 | EVP_PKEY_CTX_ctrl( |
| 10 | ctx, |
| 11 | EVP_PKEY_DSA, |
| 12 | EVP_PKEY_OP_PARAMGEN, |
| 13 | EVP_PKEY_CTRL_DSA_PARAMGEN_BITS, |
| 14 | nbits, |
| 15 | ptr::null_mut(), |
| 16 | ) |
| 17 | } |
| 18 | |
| 19 | pub const EVP_PKEY_CTRL_DSA_PARAMGEN_BITS: c_int = EVP_PKEY_ALG_CTRL + 1; |
| 20 | } |
| 21 | } |