feat: update ssh agent
This commit is contained in:
@@ -226,7 +226,7 @@ pub fn rsa_public_key_to_jwk(rsa_public_key: &RsaPublicKey) -> XResult<String> {
|
||||
Ok(serde_json::to_string(&jwk).unwrap())
|
||||
}
|
||||
|
||||
fn try_parse_rsa(public_key: &str) -> XResult<RsaPublicKey> {
|
||||
pub fn try_parse_rsa(public_key: &str) -> XResult<RsaPublicKey> {
|
||||
debugging!("Try parse RSA public key PEM.");
|
||||
// parse RSA public key PEM not works? why?
|
||||
if let Ok(rsa_public_key) = RsaPublicKey::from_public_key_pem(public_key) {
|
||||
|
||||
Reference in New Issue
Block a user