diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2014-04-23 11:12:08 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-05-06 08:54:00 +0200 |
commit | 2fc83475041acc955ef0fe7a879567b262e3b36e (patch) | |
tree | 8070d8e142ec63831984bf4430dfe9b785655e2f | |
parent | 2691ed595e10e95afcab30066e27c00d3962dd42 (diff) | |
download | libssh-2fc83475041acc955ef0fe7a879567b262e3b36e.tar.gz libssh-2fc83475041acc955ef0fe7a879567b262e3b36e.tar.xz libssh-2fc83475041acc955ef0fe7a879567b262e3b36e.zip |
pki: Make pki_key_ecdsa_nid_to_name() a shared function.
(cherry picked from commit 11cfb2903eb319d32a2432a015c61506f50dc78b)
-rw-r--r-- | include/libssh/pki_priv.h | 1 | ||||
-rw-r--r-- | src/pki_crypto.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/libssh/pki_priv.h b/include/libssh/pki_priv.h index 54a59a03..350b2243 100644 --- a/include/libssh/pki_priv.h +++ b/include/libssh/pki_priv.h @@ -34,6 +34,7 @@ void _ssh_pki_log(const char *function, const char *format, ...) PRINTF_ATTRIBUTE(2, 3); int pki_key_ecdsa_nid_from_name(const char *name); +const char *pki_key_ecdsa_nid_to_name(int nid) /* SSH Key Functions */ ssh_key pki_key_dup(const ssh_key key, int demote); diff --git a/src/pki_crypto.c b/src/pki_crypto.c index 1a9aa3ef..5e2585da 100644 --- a/src/pki_crypto.c +++ b/src/pki_crypto.c @@ -89,7 +89,7 @@ static int pki_key_ecdsa_to_nid(EC_KEY *k) return -1; } -static const char *pki_key_ecdsa_nid_to_name(int nid) +const char *pki_key_ecdsa_nid_to_name(int nid) { switch (nid) { case NID_X9_62_prime256v1: |