From 904c6ed853af02c4de5ad45356345c5b50e9f62f Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 28 Apr 2010 12:14:03 +0200 Subject: Renamed private type TYPE_RSA to SSH_KEYTYPE_* Also made this enum public --- libssh/wrapper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libssh/wrapper.c') diff --git a/libssh/wrapper.c b/libssh/wrapper.c index c3a31237..af5bbe07 100644 --- a/libssh/wrapper.c +++ b/libssh/wrapper.c @@ -1087,9 +1087,9 @@ int crypt_set_algorithms_server(ssh_session session){ client=session->client_kex.methods[SSH_HOSTKEYS]; match=ssh_find_matching(server,client); if(match && !strcmp(match,"ssh-dss")) - session->hostkeys=TYPE_DSS; + session->hostkeys=SSH_KEYTYPE_DSS; else if(match && !strcmp(match,"ssh-rsa")) - session->hostkeys=TYPE_RSA; + session->hostkeys=SSH_KEYTYPE_RSA; else { ssh_set_error(session, SSH_FATAL, "Cannot know what %s is into %s", match ? match : NULL, server); -- cgit v1.2.3