aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/x509
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-01-28 23:37:27 -0800
committerSteven Fackler <[email protected]>2016-01-28 23:37:27 -0800
commit8ab4b545411cb705872e327bf46044241c2d8e74 (patch)
tree2606f7db790ea7531fc098ca4e51423f8e4d488c /openssl/src/x509
parentMerge pull request #343 from jimmycuadra/ordered-extensions (diff)
downloadrust-openssl-8ab4b545411cb705872e327bf46044241c2d8e74.tar.xz
rust-openssl-8ab4b545411cb705872e327bf46044241c2d8e74.zip
Revert "impl Clone for PKey and X509 by using their 'references' member"
Diffstat (limited to 'openssl/src/x509')
-rw-r--r--openssl/src/x509/mod.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/openssl/src/x509/mod.rs b/openssl/src/x509/mod.rs
index a69f61d5..8cc34cad 100644
--- a/openssl/src/x509/mod.rs
+++ b/openssl/src/x509/mod.rs
@@ -509,20 +509,6 @@ impl<'ctx> X509<'ctx> {
}
}
-extern "C" {
- fn rust_X509_clone(x509: *mut ffi::X509);
-}
-
-impl<'ctx> Clone for X509<'ctx> {
- fn clone(&self) -> X509<'ctx> {
- unsafe { rust_X509_clone(self.handle) }
- /* FIXME: given that we now have refcounting control, 'owned' should be uneeded, the 'ctx
- * is probably also uneeded. We can remove both to condense the x509 api quite a bit
- */
- X509::new(self.handle, true)
- }
-}
-
impl<'ctx> Drop for X509<'ctx> {
fn drop(&mut self) {
if self.owned {