From 128343bcdb0b60fc826f2733df8cf979ec1627b4 Mon Sep 17 00:00:00 2001 From: "markus@openbsd.org" Date: Tue, 13 Jan 2015 19:31:40 +0000 Subject: upstream commit adapt mac.c to ssherr.h return codes (de-fatal) and simplify dependencies ok djm@ --- kex.h | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'kex.h') diff --git a/kex.h b/kex.h index 4c40ec851..dbcc0816f 100644 --- a/kex.h +++ b/kex.h @@ -1,4 +1,4 @@ -/* $OpenBSD: kex.h,v 1.64 2014/05/02 03:27:54 djm Exp $ */ +/* $OpenBSD: kex.h,v 1.65 2015/01/13 19:31:40 markus Exp $ */ /* * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. @@ -26,10 +26,9 @@ #ifndef KEX_H #define KEX_H -#include -#include -#include -#ifdef OPENSSL_HAS_ECC +#include "mac.h" + +#if defined(WITH_OPENSSL) && defined(OPENSSL_HAS_ECC) #include #endif @@ -82,8 +81,8 @@ enum kex_exchange { #define KEX_INIT_SENT 0x0001 typedef struct Kex Kex; -typedef struct Mac Mac; typedef struct Comp Comp; +typedef struct sshmac Mac; typedef struct Enc Enc; typedef struct Newkeys Newkeys; @@ -97,17 +96,6 @@ struct Enc { u_char *key; u_char *iv; }; -struct Mac { - char *name; - int enabled; - u_int mac_len; - u_char *key; - u_int key_len; - int type; - int etm; /* Encrypt-then-MAC */ - struct ssh_hmac_ctx *hmac_ctx; - struct umac_ctx *umac_ctx; -}; struct Comp { int type; int enabled; -- cgit v1.2.3