diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-05-17 12:14:41 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-05-21 09:18:16 +0800 |
commit | 535fc2e838277de6132ea1b3f5a3726c315e6d5e (patch) | |
tree | e1ff86b23dc4467a5628814d5394c0d5b4893474 | |
parent | e5120bc8d673987d1088abd2bbdf84d9a94a3cde (diff) | |
download | fqterm-535fc2e838277de6132ea1b3f5a3726c315e6d5e.tar.xz |
use ssh_error.h to define error numbers
-rw-r--r-- | src/protocol/internal/ssh_error.h | 10 | ||||
-rw-r--r-- | src/protocol/internal/ssh_rsa.h | 3 |
2 files changed, 11 insertions, 2 deletions
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 <stdlib.h> #include <stdint.h> @@ -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 |