feat: update ssh agent

This commit is contained in:
2025-05-27 00:04:26 +08:00
parent febdf659cd
commit a698a852fd
4 changed files with 63 additions and 9 deletions

View File

@@ -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) {