summaryrefslogtreecommitdiff
path: root/openssl/src/sign.rs
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2017-12-25 22:02:41 -0700
committerSteven Fackler <sfackler@gmail.com>2017-12-25 22:09:27 -0700
commit2adf2cf12bf1afb806ec8bfb222d32831137d749 (patch)
tree7af6a6aeecd9113d7b22028a13eed5df11fa3127 /openssl/src/sign.rs
parentff9fe6fe047231dbb2e8b576b90d68f71c09f5d9 (diff)
downloadrust-openssl-2adf2cf12bf1afb806ec8bfb222d32831137d749.zip
Remove deprecated APIs
Diffstat (limited to 'openssl/src/sign.rs')
-rw-r--r--openssl/src/sign.rs12
1 files changed, 1 insertions, 11 deletions
diff --git a/openssl/src/sign.rs b/openssl/src/sign.rs
index 4a0af9d7..2d8b5887 100644
--- a/openssl/src/sign.rs
+++ b/openssl/src/sign.rs
@@ -26,7 +26,7 @@
//! let mut signer = Signer::new(MessageDigest::sha256(), &keypair).unwrap();
//! signer.update(data).unwrap();
//! signer.update(data2).unwrap();
-//! let signature = signer.finish().unwrap();
+//! let signature = signer.sign_to_vec().unwrap();
//!
//! // Verify the data
//! let mut verifier = Verifier::new(MessageDigest::sha256(), &keypair).unwrap();
@@ -202,11 +202,6 @@ impl<'a> Signer<'a> {
buf.truncate(len);
Ok(buf)
}
-
- #[deprecated(since = "0.9.23", note = "renamed to sign_to_vec")]
- pub fn finish(&self) -> Result<Vec<u8>, ErrorStack> {
- self.sign_to_vec()
- }
}
impl<'a> Write for Signer<'a> {
@@ -314,11 +309,6 @@ impl<'a> Verifier<'a> {
}
}
}
-
- #[deprecated(since = "0.9.23", note = "renamed to `verify`")]
- pub fn finish(&self, signature: &[u8]) -> Result<bool, ErrorStack> {
- self.verify(signature)
- }
}
impl<'a> Write for Verifier<'a> {