summaryrefslogtreecommitdiff
path: root/mac.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2012-05-18 12:16:05 +0100
committerColin Watson <cjwatson@debian.org>2012-05-18 12:16:05 +0100
commitdabbdfacc9f6995b0739772a47704186dcf34ea5 (patch)
tree0a0b306a637bc85eb719261b74884f0b9573ec41 /mac.c
parent1e0d51b642cac9a6bfb719e6320905625aa5f943 (diff)
parentdd5ed53e20d218607260916a6b04d1c8c5b3d88f (diff)
* New upstream release (http://www.openssh.org/txt/release-6.0).
- Fix IPQoS not being set on non-mapped v4-in-v6 addressed connections (closes: #643312, #650512). - Add a new privilege separation sandbox implementation for Linux's new seccomp sandbox, automatically enabled on platforms that support it. (Note: privilege separation sandboxing is still experimental.)
Diffstat (limited to 'mac.c')
-rw-r--r--mac.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mac.c b/mac.c
index eef50f48d..332d3c621 100644
--- a/mac.c
+++ b/mac.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: mac.c,v 1.16 2011/08/02 01:22:11 djm Exp $ */ 1/* $OpenBSD: mac.c,v 1.17 2011/12/02 00:43:57 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Markus Friedl. All rights reserved. 3 * Copyright (c) 2001 Markus Friedl. All rights reserved.
4 * 4 *
@@ -44,6 +44,8 @@
44 44
45#include "umac.h" 45#include "umac.h"
46 46
47#include "openbsd-compat/openssl-compat.h"
48
47#define SSH_EVP 1 /* OpenSSL EVP-based MAC */ 49#define SSH_EVP 1 /* OpenSSL EVP-based MAC */
48#define SSH_UMAC 2 /* UMAC (not integrated with OpenSSL) */ 50#define SSH_UMAC 2 /* UMAC (not integrated with OpenSSL) */
49 51
@@ -116,6 +118,7 @@ mac_init(Mac *mac)
116 case SSH_EVP: 118 case SSH_EVP:
117 if (mac->evp_md == NULL) 119 if (mac->evp_md == NULL)
118 return -1; 120 return -1;
121 HMAC_CTX_init(&mac->evp_ctx);
119 HMAC_Init(&mac->evp_ctx, mac->key, mac->key_len, mac->evp_md); 122 HMAC_Init(&mac->evp_ctx, mac->key, mac->key_len, mac->evp_md);
120 return 0; 123 return 0;
121 case SSH_UMAC: 124 case SSH_UMAC: