summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-05-17 12:14:41 +0800
committerIru Cai <mytbk920423@gmail.com>2018-05-21 09:18:16 +0800
commit535fc2e838277de6132ea1b3f5a3726c315e6d5e (patch)
treee1ff86b23dc4467a5628814d5394c0d5b4893474
parente5120bc8d673987d1088abd2bbdf84d9a94a3cde (diff)
downloadfqterm-535fc2e838277de6132ea1b3f5a3726c315e6d5e.tar.xz
use ssh_error.h to define error numbers
-rw-r--r--src/protocol/internal/ssh_error.h10
-rw-r--r--src/protocol/internal/ssh_rsa.h3
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