From fa9e0afda25c038c0c9d815f7d812f27f5f34ea0 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 15 May 2023 18:35:03 +0200 Subject: [PATCH] openssl: Rename read_private_rsa_params() -> read_openssh_private_key(). The new name encodes the format of the key in the function name just like the counterpart read_pem_private_key() does. --- openssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openssl.c b/openssl.c index 9804fe6c..0808a8b0 100644 --- a/openssl.c +++ b/openssl.c @@ -149,7 +149,7 @@ bio_free: return *rsa? RSA_size(*rsa) : -E_PRIVATE_KEY; } -static int read_private_rsa_params(const unsigned char *blob, +static int read_openssh_private_key(const unsigned char *blob, const unsigned char *end, RSA **result) { int ret; @@ -267,7 +267,7 @@ static int get_private_key(const char *path, RSA **rsa) if (ret < 0) goto free_blob; PARA_INFO_LOG("reading RSA params at offset %d\n", ret); - ret = read_private_rsa_params(blob + ret, end, rsa); + ret = read_openssh_private_key(blob + ret, end, rsa); } else ret = read_pem_private_key(path, rsa); free_blob: -- 2.39.5