1 | use libc::*; |
---|---|
2 | use std::ptr; |
3 | |
4 | use super::*; |
5 | |
6 | pub const OPENSSL_EC_NAMED_CURVE: c_int = 1; |
7 | |
8 | #[cfg(ossl300)] |
9 | pub unsafe fn EVP_EC_gen(curve: *const c_char) -> *mut EVP_PKEY { |
10 | EVP_PKEY_Q_keygen( |
11 | libctx:ptr::null_mut(), |
12 | propq:ptr::null_mut(), |
13 | type_:"EC\0 ".as_ptr().cast(), |
14 | curve, |
15 | ) |
16 | } |
17 |