1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

pki: Make ssh_type_to_char() a legacy function.

This commit is contained in:
Andreas Schneider
2011-08-16 00:54:00 +02:00
parent 19a3f5a61d
commit 04ce7967b8
2 changed files with 3 additions and 14 deletions

View File

@@ -44,20 +44,6 @@
* @{
*/
/* Public key decoding functions */
const char *ssh_type_to_char(int type) {
switch (type) {
case SSH_KEYTYPE_DSS:
return "ssh-dss";
case SSH_KEYTYPE_RSA:
return "ssh-rsa";
case SSH_KEYTYPE_RSA1:
return "ssh-rsa1";
default:
return NULL;
}
}
int ssh_type_from_name(const char *name) {
if (strcmp(name, "rsa1") == 0) {
return SSH_KEYTYPE_RSA1;

View File

@@ -339,6 +339,9 @@ ssh_string publickey_from_file(ssh_session session, const char *filename,
return key_str;
}
const char *ssh_type_to_char(int type) {
return ssh_key_type_to_char(type);
}
/****************************************************************************
* SERVER SUPPORT
****************************************************************************/