]> git.tue.mpg.de Git - paraslash.git/commitdiff
openssl: Rename read_private_rsa_params() -> read_openssh_private_key().
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 15 May 2023 16:35:03 +0000 (18:35 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 15 May 2023 18:06:50 +0000 (20:06 +0200)
The new name encodes the format of the key in the function name just
like the counterpart read_pem_private_key() does.

openssl.c

index 9804fe6c74f01e89d5fcd10e3e916d55c7cb538b..0808a8b09c22210e53ff6a4cd3b22f337aec7362 100644 (file)
--- 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: