openssl_sys/
types.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use libc::*;

use super::*;

cfg_if! {
    if #[cfg(any(ossl110, libressl280))] {
        pub enum EVP_PKEY {}
    } else {
        #[repr(C)]
        pub struct EVP_PKEY {
            pub type_: c_int,
            pub save_type: c_int,
            pub references: c_int,
            pub ameth: *const EVP_PKEY_ASN1_METHOD,
            pub engine: *mut ENGINE,
            pub pkey: *mut c_void,
            pub save_parameters: c_int,
            pub attributes: *mut stack_st_X509_ATTRIBUTE,
        }
    }
}