aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/sign.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src/sign.rs')
-rw-r--r--openssl/src/sign.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/sign.rs b/openssl/src/sign.rs
index f5f57a97..1693f6ff 100644
--- a/openssl/src/sign.rs
+++ b/openssl/src/sign.rs
@@ -382,7 +382,7 @@ unsafe fn EVP_DigestVerifyFinal(
#[cfg(test)]
mod test {
- use hex::{FromHex, ToHex};
+ use hex::{self, FromHex};
use std::iter;
use hash::MessageDigest;
@@ -418,7 +418,7 @@ mod test {
signer.update(&Vec::from_hex(INPUT).unwrap()).unwrap();
let result = signer.sign_to_vec().unwrap();
- assert_eq!(result.to_hex(), SIGNATURE);
+ assert_eq!(hex::encode(result), SIGNATURE);
}
#[test]