diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-12-06 23:47:58 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-12-06 23:47:58 +0100 |
commit | 984fb41b9838c80ec35eb9595b11df15ba8d152a (patch) | |
tree | b9c279a93460dd47f381eed8d477c331ee065785 /libssh/client.c | |
parent | a1e05c62ae73a87a8c52d09c2f31fc7bc2b60d0e (diff) | |
download | libssh-984fb41b9838c80ec35eb9595b11df15ba8d152a.tar.gz libssh-984fb41b9838c80ec35eb9595b11df15ba8d152a.tar.xz libssh-984fb41b9838c80ec35eb9595b11df15ba8d152a.zip |
Moved #defines into an enum
Diffstat (limited to 'libssh/client.c')
-rw-r--r-- | libssh/client.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/libssh/client.c b/libssh/client.c index d4f5f5c..580a7d5 100644 --- a/libssh/client.c +++ b/libssh/client.c @@ -231,12 +231,15 @@ int ssh_send_banner(ssh_session session, int server) { return 0; } -#define DH_STATE_INIT 0 -#define DH_STATE_INIT_TO_SEND 1 -#define DH_STATE_INIT_SENT 2 -#define DH_STATE_NEWKEYS_TO_SEND 3 -#define DH_STATE_NEWKEYS_SENT 4 -#define DH_STATE_FINISHED 5 +enum ssh_dh_state_e { + DH_STATE_INIT, + DH_STATE_INIT_TO_SEND, + DH_STATE_INIT_SENT, + DH_STATE_NEWKEYS_TO_SEND, + DH_STATE_NEWKEYS_SENT, + DH_STATE_FINISHED +}; + static int dh_handshake(ssh_session session) { ssh_string e = NULL; ssh_string f = NULL; |