aboutsummaryrefslogtreecommitdiff
path: root/libssh/wrapper.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-04-28 12:14:03 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-04-28 12:14:03 +0200
commit904c6ed853af02c4de5ad45356345c5b50e9f62f (patch)
treefec7f56b1000d8ebf8dacd1e9bb49da60fe2bf5c /libssh/wrapper.c
parent186e07b415b1699be75961d306df369b537da855 (diff)
downloadlibssh-904c6ed853af02c4de5ad45356345c5b50e9f62f.tar.gz
libssh-904c6ed853af02c4de5ad45356345c5b50e9f62f.tar.xz
libssh-904c6ed853af02c4de5ad45356345c5b50e9f62f.zip
Renamed private type TYPE_RSA to SSH_KEYTYPE_*
Also made this enum public
Diffstat (limited to 'libssh/wrapper.c')
-rw-r--r--libssh/wrapper.c4
1 files changed, 2 insertions, 2 deletions
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);