aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/libssh/libssh.h8
-rw-r--r--include/libssh/priv.h6
2 files changed, 8 insertions, 6 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 22a8e1ec..54c43ff0 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -219,6 +219,14 @@ enum ssh_error_types_e {
SSH_EINTR
};
+/* some types for keys */
+enum ssh_keytypes_e{
+ SSH_KEYTYPE_UNKNOWN=0,
+ SSH_KEYTYPE_DSS=1,
+ SSH_KEYTYPE_RSA,
+ SSH_KEYTYPE_RSA1
+};
+
/* Error return codes */
#define SSH_OK 0 /* No error */
#define SSH_ERROR -1 /* Error of some kind */
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 122dc129..47039149 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -55,12 +55,6 @@
#define CLIENTBANNER1 "SSH-1.5-libssh-" SSH_STRINGIFY(LIBSSH_VERSION)
#define CLIENTBANNER2 "SSH-2.0-libssh-" SSH_STRINGIFY(LIBSSH_VERSION)
#define KBDINT_MAX_PROMPT 256 /* more than openssh's :) */
-/* some types for public keys */
-enum public_key_types_e{
- TYPE_DSS=1,
- TYPE_RSA,
- TYPE_RSA1
-};
#ifdef __cplusplus
extern "C" {