diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-05-10 21:17:47 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-05-10 21:19:27 +0800 |
commit | ae53eddc611459fa427db9c65f6213d3e817aa31 (patch) | |
tree | 51b5cdf33dbb3abb5ace6fa766b21110dc2f99eb /src/protocol/internal/ssh_rsa.h | |
parent | 4937c80cb0b5747fe5983d24c83fc61c796b6882 (diff) | |
download | fqterm-ae53eddc611459fa427db9c65f6213d3e817aa31.tar.xz |
restruct SSH RSA verification
- put I_C, I_S, V_C, V_S, K_S to ssh_session
- move RSA verification code to C code
Diffstat (limited to 'src/protocol/internal/ssh_rsa.h')
-rw-r--r-- | src/protocol/internal/ssh_rsa.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/protocol/internal/ssh_rsa.h b/src/protocol/internal/ssh_rsa.h new file mode 100644 index 0000000..bccce00 --- /dev/null +++ b/src/protocol/internal/ssh_rsa.h @@ -0,0 +1,20 @@ +#ifndef SSH_RSA +#define SSH_RSA + +#include "ssh_session.h" +#include <stdlib.h> +#include <stdint.h> + +#ifdef __cplusplus +extern "C" { +#endif /* } */ + +enum { ESECRET = 1, ERSA }; + +int verifyRSAKey(ssh_session *ss, const uint8_t *data, size_t len); + +#ifdef __cplusplus +} +#endif + +#endif |