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_session.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_session.h')
-rw-r--r-- | src/protocol/internal/ssh_session.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/protocol/internal/ssh_session.h b/src/protocol/internal/ssh_session.h index d7df1c9..98adb50 100644 --- a/src/protocol/internal/ssh_session.h +++ b/src/protocol/internal/ssh_session.h @@ -12,6 +12,11 @@ typedef struct unsigned char *session_id; unsigned char H[SHA512_DIGEST_LENGTH]; SSH_DH *dh; + + const char *V_C, *V_S; + size_t I_C_len, I_S_len, K_S_len; + char *I_C, *I_S; + uint8_t *K_S; } ssh_session; void computeKey(ssh_session *, int, char, unsigned char []); |