diff options
| author | Steven Fackler <[email protected]> | 2018-01-01 11:47:46 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2018-01-01 11:50:07 -0800 |
| commit | 9043cf9aa709b12f907455b3a514356c2d30ce0e (patch) | |
| tree | 4fb0a6bab4f4d3e980a8e94b6057ec8e1b871349 /openssl-sys/src | |
| parent | Merge pull request #812 from Eijebong/bump_hex (diff) | |
| download | rust-openssl-9043cf9aa709b12f907455b3a514356c2d30ce0e.tar.xz rust-openssl-9043cf9aa709b12f907455b3a514356c2d30ce0e.zip | |
Move X509Filetype to SslFiletype
These constants have the same values, but X509_FILETYPE_DEFAULT doesn't
work in the Ssl methods and using the SSL_* names is a bit less
confusing.
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index e95e5d0d..619cb3b6 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -1284,6 +1284,9 @@ pub const SSL_OP_NO_DTLSv1_2: c_ulong = 0x08000000; pub const SSL_OP_NO_SSL_MASK: c_ulong = SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2; +pub const SSL_FILETYPE_PEM: c_int = X509_FILETYPE_PEM; +pub const SSL_FILETYPE_ASN1: c_int = X509_FILETYPE_ASN1; + pub const TLSEXT_NAMETYPE_host_name: c_int = 0; pub const TLSEXT_STATUSTYPE_ocsp: c_int = 1; |