fix typo
This commit is contained in:
parent
8b10ce8a91
commit
2e633283aa
3 changed files with 5 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "jsonwebkey-cli"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
authors = ["Okamura Yasunobu <okamura@informationsea.info>"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
|
|
@ -14,5 +14,5 @@ categories = ["authentication"]
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
jsonwebkey-convert = {version = "0.2", path = "../jsonwebkey-convert"}
|
||||
jsonwebkey-convert = {version = "0.3", path = "../jsonwebkey-convert"}
|
||||
clap = "2"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "jsonwebkey-convert"
|
||||
version = "0.2.0"
|
||||
version = "0.3.0"
|
||||
authors = ["Okamura Yasunobu <okamura@informationsea.info>"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ pub enum JWKConvertError {
|
|||
#[error(transparent)]
|
||||
ANS1EncodeError(#[from] simple_asn1::ASN1EncodeErr),
|
||||
#[error(transparent)]
|
||||
PEMParseErrror(#[from] pem::PemError),
|
||||
PEMParseError(#[from] pem::PemError),
|
||||
#[error(transparent)]
|
||||
Base64UrlError(#[from] base64_url::base64::DecodeError),
|
||||
#[error(transparent)]
|
||||
|
|
@ -252,7 +252,7 @@ pub fn load_der(data: &[u8]) -> Result<RSAPubKey, JWKConvertError> {
|
|||
|
||||
/// Load an RSA public key from PEM format
|
||||
pub fn load_pem(data: &[u8]) -> Result<RSAPubKey, JWKConvertError> {
|
||||
let data = pem::parse(data).map_err(JWKConvertError::PEMParseErrror)?;
|
||||
let data = pem::parse(data)?;
|
||||
load_der(&data.contents)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue