use openssl_sys::*;
use openssl::ssl;
bitflags! {
pub flags SslOptions: u64 {
const DEFAULT_WORKGROUNDS = SSL_OP_ALL,
const SINGLE_DH_USE = SSL_OP_SINGLE_DH_USE,
const NO_SSL_V2 = SSL_OP_NO_SSLv2,
const NO_SSL_V3 = SSL_OP_NO_SSLv3,
const NO_TLS_V1 = SSL_OP_NO_TLSv1,
const NO_TLS_V1_1 = SSL_OP_NO_TLSv1_1,
const NO_TLS_V1_2 = SSL_OP_NO_TLSv1_2,
const NO_COMPRESSION = SSL_OP_NO_COMPRESSION,
}
}
#[repr(i32)]
pub enum FileFormat {
PEM = X509_FILETYPE_PEM,
}
pub type SslVerifyMode = ssl::SslVerifyMode;
#[derive(Clone, Copy)]
pub enum Handshake {
Client,
Server,
}
#[repr(i32)]
pub enum PasswordPurpose {
ForReading = 0,
ForWriting = 1,
}