diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2014-04-23 11:15:05 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-04-23 11:15:05 +0200 |
commit | f48a99b97c399174ad35b83a91df922f106ade13 (patch) | |
tree | 75675c1996f36adbb8f12d21e715c81e27543f78 /src | |
parent | 11cfb2903eb319d32a2432a015c61506f50dc78b (diff) | |
download | libssh-f48a99b97c399174ad35b83a91df922f106ade13.tar.gz libssh-f48a99b97c399174ad35b83a91df922f106ade13.tar.xz libssh-f48a99b97c399174ad35b83a91df922f106ade13.zip |
pki: Move ssh_pki_key_ecdsa_name() to the correct file.
Diffstat (limited to 'src')
-rw-r--r-- | src/pki.c | 14 | ||||
-rw-r--r-- | src/pki_crypto.c | 14 |
2 files changed, 14 insertions, 14 deletions
@@ -99,6 +99,20 @@ enum ssh_keytypes_e pki_privatekey_type_from_string(const char *privkey) { } /** + * @brief returns the ECDSA key name ("ecdsa-sha2-nistp256" for example) + * + * @param[in] key the ssh_key whose ECDSA name to get + * + * @returns the ECDSA key name ("ecdsa-sha2-nistp256" for example) + * + * @returns "unknown" if the ECDSA key name is not known + */ +const char *ssh_pki_key_ecdsa_name(const ssh_key key) +{ + return pki_key_ecdsa_nid_to_name(key->ecdsa_nid); +} + +/** * @brief creates a new empty SSH key * @returns an empty ssh_key handle, or NULL on error. */ diff --git a/src/pki_crypto.c b/src/pki_crypto.c index 884c5382..903cb910 100644 --- a/src/pki_crypto.c +++ b/src/pki_crypto.c @@ -105,20 +105,6 @@ const char *pki_key_ecdsa_nid_to_name(int nid) return "unknown"; } -/** - * @brief returns the ECDSA key name ("ecdsa-sha2-nistp256" for example) - * - * @param[in] key the ssh_key whose ECDSA name to get - * - * @returns the ECDSA key name ("ecdsa-sha2-nistp256" for example) - * - * @returns "unknown" if the ECDSA key name is not known - */ -const char *ssh_pki_key_ecdsa_name(const ssh_key key) -{ - return pki_key_ecdsa_nid_to_name(key->ecdsa_nid); -} - static const char *pki_key_ecdsa_nid_to_char(int nid) { switch (nid) { |