Migrate to current pre-release revisions of dependencies (#583)
The CHANGELOG lists the specific versions currently pinned; it will be modified to instead reference the public releases once they exist and this crate uses them.
This commit is contained in:
@@ -57,6 +57,9 @@ pub enum Error {
|
||||
/// Authentication error
|
||||
AuthenticationError,
|
||||
|
||||
/// Error while building a certificate
|
||||
CertificateBuilder,
|
||||
|
||||
/// Generic error
|
||||
GenericError,
|
||||
|
||||
@@ -136,6 +139,7 @@ impl Error {
|
||||
}
|
||||
Error::ArgumentError => f.write_str("argument error"),
|
||||
Error::AuthenticationError => f.write_str("authentication error"),
|
||||
Error::CertificateBuilder => f.write_str("certificate builder error"),
|
||||
Error::GenericError => f.write_str("generic error"),
|
||||
Error::InvalidObject => f.write_str("invalid object"),
|
||||
Error::KeyError => f.write_str("key error"),
|
||||
@@ -197,3 +201,9 @@ impl From<der::Error> for Error {
|
||||
Error::ParseError
|
||||
}
|
||||
}
|
||||
|
||||
impl From<x509_cert::builder::Error> for Error {
|
||||
fn from(_err: x509_cert::builder::Error) -> Error {
|
||||
Error::CertificateBuilder
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user