mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-12-22 03:06:32 +00:00
Re-export PrepareVerifyError
This commit is contained in:
parent
878abecd4c
commit
19d3c28116
1 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
|||
pub use actix_web_lab::extract::RequestSignature;
|
||||
pub use http_signature_normalization::{
|
||||
verify::{Algorithm, DeprecatedAlgorithm},
|
||||
Config,
|
||||
Config, PrepareVerifyError,
|
||||
};
|
||||
|
||||
pub type Signed<Extractor, Config, Digest, VerifyKey> =
|
||||
|
@ -19,7 +19,7 @@ pub enum Error {
|
|||
Digest,
|
||||
Signature,
|
||||
InvalidHeaderValue,
|
||||
PrepareVerify(http_signature_normalization::PrepareVerifyError),
|
||||
PrepareVerify(PrepareVerifyError),
|
||||
}
|
||||
|
||||
impl std::fmt::Display for Error {
|
||||
|
@ -54,8 +54,8 @@ impl actix_web::ResponseError for Error {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<http_signature_normalization::PrepareVerifyError> for Error {
|
||||
fn from(e: http_signature_normalization::PrepareVerifyError) -> Self {
|
||||
impl From<PrepareVerifyError> for Error {
|
||||
fn from(e: PrepareVerifyError) -> Self {
|
||||
Error::PrepareVerify(e)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue