1use libc::*;
2use std::ptr;
3
4use super::*;
5
6pub const OPENSSL_EC_NAMED_CURVE: c_int = 1;
7
8#[cfg(ossl300)]
9pub 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