mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
pki: Move ssh_pki_key_ecdsa_name() to the correct file.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user