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/src/x509 | |
| 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/src/x509')
| -rw-r--r-- | openssl/src/x509/mod.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs index 9491afce..98d4aed5 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -40,18 +40,6 @@ pub mod store; #[cfg(test)] mod tests; -pub struct X509Filetype(c_int); - -impl X509Filetype { - pub fn as_raw(&self) -> c_int { - self.0 - } - - pub const PEM: X509Filetype = X509Filetype(ffi::X509_FILETYPE_PEM); - pub const ASN1: X509Filetype = X509Filetype(ffi::X509_FILETYPE_ASN1); - pub const DEFAULT: X509Filetype = X509Filetype(ffi::X509_FILETYPE_DEFAULT); -} - foreign_type_and_impl_send_sync! { type CType = ffi::X509_STORE_CTX; fn drop = ffi::X509_STORE_CTX_free; |