summaryrefslogtreecommitdiff
path: root/src/protocol/internal/ssh_session.h
blob: d7df1c992d18c111843e20db9cf1e9bb87ad4d2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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;
} ssh_session;

void computeKey(ssh_session *, int, char, unsigned char []);

#ifdef __cplusplus
}
#endif

#endif