diff options
| author | Steven Fackler <[email protected]> | 2017-02-11 10:13:00 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2017-02-11 10:13:00 -0800 |
| commit | f2c69ae7e9e9ab6c843c1de842551bb624e7eb2c (patch) | |
| tree | b507d4f207a37720d118bb75d86665d2d9a5da2d /openssl/src/conf.rs | |
| parent | Docs (diff) | |
| parent | Merge pull request #568 from mredlek/x509_req_version_subject (diff) | |
| download | rust-openssl-f2c69ae7e9e9ab6c843c1de842551bb624e7eb2c.tar.xz rust-openssl-f2c69ae7e9e9ab6c843c1de842551bb624e7eb2c.zip | |
Merge remote-tracking branch 'origin/master' into x509-builder
Diffstat (limited to 'openssl/src/conf.rs')
| -rw-r--r-- | openssl/src/conf.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/openssl/src/conf.rs b/openssl/src/conf.rs index 5483955d..a648bb15 100644 --- a/openssl/src/conf.rs +++ b/openssl/src/conf.rs @@ -22,7 +22,13 @@ impl ConfMethod { } } -type_!(Conf, ConfRef, ffi::CONF, ffi::NCONF_free); +foreign_type! { + type CType = ffi::CONF; + fn drop = ffi::NCONF_free; + + pub struct Conf; + pub struct ConfRef; +} impl Conf { pub fn new(method: ConfMethod) -> Result<Conf, ErrorStack> { |