diff options
| author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-09-23 22:42:29 +0200 |
|---|---|---|
| committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-09-23 22:42:29 +0200 |
| commit | b359229a2ea6f8b623add9bea02015991c8d6e9d (patch) | |
| tree | 0900f2d74aa38b000451c78534aedf42e97f3f97 /include/libssh/priv.h | |
| parent | 496a8e12d988b71089dc59547ed0f3e6c6825292 (diff) | |
| download | libssh-b359229a2ea6f8b623add9bea02015991c8d6e9d.tar.gz libssh-b359229a2ea6f8b623add9bea02015991c8d6e9d.tar.xz libssh-b359229a2ea6f8b623add9bea02015991c8d6e9d.zip | |
Change #defines to enums when it makes sense
Diffstat (limited to 'include/libssh/priv.h')
| -rw-r--r-- | include/libssh/priv.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 3fe5fa39..1c13a704 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -53,9 +53,11 @@ #define CLIENTBANNER2 "SSH-2.0-libssh-" SSH_STRINGIFY(LIBSSH_VERSION) #define KBDINT_MAX_PROMPT 256 /* more than openssh's :) */ /* some types for public keys */ -#define TYPE_DSS 1 -#define TYPE_RSA 2 -#define TYPE_RSA1 3 +enum public_key_types_e{ + TYPE_DSS=1, + TYPE_RSA, + TYPE_RSA1 +}; /* profiling constants. Don't touch them unless you know what you do */ #ifdef HAVE_LIBCRYPTO |
