From 535fc2e838277de6132ea1b3f5a3726c315e6d5e Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Thu, 17 May 2018 12:14:41 +0800 Subject: use ssh_error.h to define error numbers --- src/protocol/internal/ssh_error.h | 10 ++++++++++ src/protocol/internal/ssh_rsa.h | 3 +-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 src/protocol/internal/ssh_error.h diff --git a/src/protocol/internal/ssh_error.h b/src/protocol/internal/ssh_error.h new file mode 100644 index 0000000..1a0fd32 --- /dev/null +++ b/src/protocol/internal/ssh_error.h @@ -0,0 +1,10 @@ +#ifndef SSH_ERROR_H +#define SSH_ERROR_H + +enum { + ESECRET = 1, + ERSA, + ECRYPT, +}; + +#endif diff --git a/src/protocol/internal/ssh_rsa.h b/src/protocol/internal/ssh_rsa.h index bccce00..9fbc5e1 100644 --- a/src/protocol/internal/ssh_rsa.h +++ b/src/protocol/internal/ssh_rsa.h @@ -2,6 +2,7 @@ #define SSH_RSA #include "ssh_session.h" +#include "ssh_error.h" #include #include @@ -9,8 +10,6 @@ extern "C" { #endif /* } */ -enum { ESECRET = 1, ERSA }; - int verifyRSAKey(ssh_session *ss, const uint8_t *data, size_t len); #ifdef __cplusplus -- cgit v1.2.3