diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-04-28 12:14:03 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-04-28 12:14:03 +0200 |
commit | 904c6ed853af02c4de5ad45356345c5b50e9f62f (patch) | |
tree | fec7f56b1000d8ebf8dacd1e9bb49da60fe2bf5c /libssh/dh.c | |
parent | 186e07b415b1699be75961d306df369b537da855 (diff) | |
download | libssh-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/dh.c')
-rw-r--r-- | libssh/dh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libssh/dh.c b/libssh/dh.c index 34263c2..86de9a2 100644 --- a/libssh/dh.c +++ b/libssh/dh.c @@ -919,7 +919,7 @@ int sig_verify(ssh_session session, ssh_public_key pubkey, #endif switch(pubkey->type) { - case TYPE_DSS: + case SSH_KEYTYPE_DSS: #ifdef HAVE_LIBGCRYPT valid = gcry_sexp_build(&gcryhash, NULL, "%b", SHA_DIGEST_LEN + 1, hash); if (valid != 0) { @@ -954,8 +954,8 @@ int sig_verify(ssh_session session, ssh_public_key pubkey, ssh_set_error(session, SSH_FATAL, "Invalid DSA signature"); return -1; - case TYPE_RSA: - case TYPE_RSA1: + case SSH_KEYTYPE_RSA: + case SSH_KEYTYPE_RSA1: #ifdef HAVE_LIBGCRYPT valid = gcry_sexp_build(&gcryhash, NULL, "(data(flags pkcs1)(hash sha1 %b))", SHA_DIGEST_LEN, hash + 1); |