Fix openssl build failure

This commit is contained in:
Wakahisa 2023-04-02 13:24:14 +02:00
parent 856a689d1b
commit a9437819c6

View file

@ -39,7 +39,7 @@ use openssl::x509::{X509NameBuilder, X509ReqBuilder, X509};
// We directly use the hmac crate here, there was a self-referential structure // We directly use the hmac crate here, there was a self-referential structure
// problem while using OpenSSL's Signer // problem while using OpenSSL's Signer
// TODO: Use proper OpenSSL method for this // TODO: Use proper OpenSSL method for this
use hmac::{Hmac, Mac, NewMac}; use hmac::{Hmac, Mac};
pub struct HmacSha256 { pub struct HmacSha256 {
ctx: Hmac<sha2::Sha256>, ctx: Hmac<sha2::Sha256>,
} }