diff options
author | markus@openbsd.org <markus@openbsd.org> | 2015-01-13 19:31:40 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-01-14 20:43:11 +1100 |
commit | 128343bcdb0b60fc826f2733df8cf979ec1627b4 (patch) | |
tree | ec2b30d15b28ee4e5f3822493989fad1e00199f6 /kex.h | |
parent | e7fd952f4ea01f09ceb068721a5431ac2fd416ed (diff) |
upstream commit
adapt mac.c to ssherr.h return codes (de-fatal) and
simplify dependencies ok djm@
Diffstat (limited to 'kex.h')
-rw-r--r-- | kex.h | 22 |
1 files changed, 5 insertions, 17 deletions
@@ -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 | ||
84 | typedef struct Kex Kex; | 83 | typedef struct Kex Kex; |
85 | typedef struct Mac Mac; | ||
86 | typedef struct Comp Comp; | 84 | typedef struct Comp Comp; |
85 | typedef struct sshmac Mac; | ||
87 | typedef struct Enc Enc; | 86 | typedef struct Enc Enc; |
88 | typedef struct Newkeys Newkeys; | 87 | typedef 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 | }; |
100 | struct 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 | }; | ||
111 | struct Comp { | 99 | struct Comp { |
112 | int type; | 100 | int type; |
113 | int enabled; | 101 | int enabled; |