summaryrefslogtreecommitdiff
path: root/src/protocol/internal/ssh_session.h
blob: 2473e2335c6d1296df5fdd027e66a9ed1e5fab8c (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
29
#ifndef SSH_SESSION_H
#define SSH_SESSION_H

#include "ssh_diffie-hellman.h"
#include <stdint.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