diff options
| author | Steven Fackler <[email protected]> | 2016-11-05 13:57:05 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-11-05 13:57:05 -0700 |
| commit | 803725891331daf1839ea88e3035ae151e59cc2e (patch) | |
| tree | dba8b7a03e206c8693183e65015358fbd11cdfe8 /openssl/src/x509 | |
| parent | Add Stack::pop (diff) | |
| download | rust-openssl-803725891331daf1839ea88e3035ae151e59cc2e.tar.xz rust-openssl-803725891331daf1839ea88e3035ae151e59cc2e.zip | |
Return a Stack in Pkcs12
Diffstat (limited to 'openssl/src/x509')
| -rw-r--r-- | openssl/src/x509/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs index ec17cbe2..eb517f80 100644 --- a/openssl/src/x509/mod.rs +++ b/openssl/src/x509/mod.rs @@ -480,6 +480,12 @@ impl AsRef<X509Ref> for X509 { } } +impl AsRef<X509Ref> for X509Ref { + fn as_ref(&self) -> &X509Ref { + self + } +} + impl Borrow<X509Ref> for X509 { fn borrow(&self) -> &X509Ref { &*self |