summaryrefslogtreecommitdiff
path: root/kex.h
diff options
context:
space:
mode:
Diffstat (limited to 'kex.h')
-rw-r--r--kex.h22
1 files changed, 5 insertions, 17 deletions
diff --git a/kex.h b/kex.h
index 4c40ec851..dbcc0816f 100644
--- a/kex.h
+++ b/kex.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: kex.h,v 1.64 2014/05/02 03:27:54 djm Exp $ */ 1/* $OpenBSD: kex.h,v 1.65 2015/01/13 19:31:40 markus Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. 4 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
@@ -26,10 +26,9 @@
26#ifndef KEX_H 26#ifndef KEX_H
27#define KEX_H 27#define KEX_H
28 28
29#include <signal.h> 29#include "mac.h"
30#include <openssl/evp.h> 30
31#include <openssl/hmac.h> 31#if defined(WITH_OPENSSL) && defined(OPENSSL_HAS_ECC)
32#ifdef OPENSSL_HAS_ECC
33#include <openssl/ec.h> 32#include <openssl/ec.h>
34#endif 33#endif
35 34
@@ -82,8 +81,8 @@ enum kex_exchange {
82#define KEX_INIT_SENT 0x0001 81#define KEX_INIT_SENT 0x0001
83 82
84typedef struct Kex Kex; 83typedef struct Kex Kex;
85typedef struct Mac Mac;
86typedef struct Comp Comp; 84typedef struct Comp Comp;
85typedef struct sshmac Mac;
87typedef struct Enc Enc; 86typedef struct Enc Enc;
88typedef struct Newkeys Newkeys; 87typedef struct Newkeys Newkeys;
89 88
@@ -97,17 +96,6 @@ struct Enc {
97 u_char *key; 96 u_char *key;
98 u_char *iv; 97 u_char *iv;
99}; 98};
100struct Mac {
101 char *name;
102 int enabled;
103 u_int mac_len;
104 u_char *key;
105 u_int key_len;
106 int type;
107 int etm; /* Encrypt-then-MAC */
108 struct ssh_hmac_ctx *hmac_ctx;
109 struct umac_ctx *umac_ctx;
110};
111struct Comp { 99struct Comp {
112 int type; 100 int type;
113 int enabled; 101 int enabled;