mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-11-21 17:00:59 +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 actix_web_lab::extract::RequestSignature;
|
||||||
pub use http_signature_normalization::{
|
pub use http_signature_normalization::{
|
||||||
verify::{Algorithm, DeprecatedAlgorithm},
|
verify::{Algorithm, DeprecatedAlgorithm},
|
||||||
Config,
|
Config, PrepareVerifyError,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub type Signed<Extractor, Config, Digest, VerifyKey> =
|
pub type Signed<Extractor, Config, Digest, VerifyKey> =
|
||||||
|
@ -19,7 +19,7 @@ pub enum Error {
|
||||||
Digest,
|
Digest,
|
||||||
Signature,
|
Signature,
|
||||||
InvalidHeaderValue,
|
InvalidHeaderValue,
|
||||||
PrepareVerify(http_signature_normalization::PrepareVerifyError),
|
PrepareVerify(PrepareVerifyError),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl std::fmt::Display for Error {
|
impl std::fmt::Display for Error {
|
||||||
|
@ -54,8 +54,8 @@ impl actix_web::ResponseError for Error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<http_signature_normalization::PrepareVerifyError> for Error {
|
impl From<PrepareVerifyError> for Error {
|
||||||
fn from(e: http_signature_normalization::PrepareVerifyError) -> Self {
|
fn from(e: PrepareVerifyError) -> Self {
|
||||||
Error::PrepareVerify(e)
|
Error::PrepareVerify(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue