aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src/crypto')
-rw-r--r--openssl/src/crypto/pkey.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/openssl/src/crypto/pkey.rs b/openssl/src/crypto/pkey.rs
index dee6cb8b..314ee63d 100644
--- a/openssl/src/crypto/pkey.rs
+++ b/openssl/src/crypto/pkey.rs
@@ -52,10 +52,6 @@ fn openssl_hash_nid(hash: HashType) -> c_int {
}
}
-extern "C" {
- fn rust_EVP_PKEY_clone(pkey: *mut ffi::EVP_PKEY);
-}
-
pub struct PKey {
evp: *mut ffi::EVP_PKEY,
parts: Parts,
@@ -604,16 +600,6 @@ impl Drop for PKey {
}
}
-impl Clone for PKey {
- fn clone(&self) -> Self {
- unsafe {
- rust_EVP_PKEY_clone(self.evp);
- }
-
- PKey::from_handle(self.evp, self.parts)
- }
-}
-
#[cfg(test)]
mod tests {
use std::path::Path;