blob: 98adb50c8ddd4bf5ab1f2a8fee1a72d9102d4125 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef SSH_SESSION_H
#define SSH_SESSION_H
#include "ssh_diffie-hellman.h"
#ifdef __cplusplus
extern "C" {
#endif /* } for better indentation in Vim */
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 []);
#ifdef __cplusplus
}
#endif
#endif
|