From b359229a2ea6f8b623add9bea02015991c8d6e9d Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 23 Sep 2009 22:42:29 +0200 Subject: Change #defines to enums when it makes sense --- include/libssh/priv.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/libssh/priv.h') 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 -- cgit