summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2012-08-31 22:40:56 +0000
committerfgsch <fgsch@openbsd.org>2012-08-31 22:40:56 +0000
commit826d19836a816af5cfb3439ba15fefc1e754545c (patch)
tree778ecf4650fecd6b43147be30e207000c505434c
parentDon't treat zaurus special; everybody gets libraries with debug info now. (diff)
downloadwireguard-openbsd-826d19836a816af5cfb3439ba15fefc1e754545c.tar.xz
wireguard-openbsd-826d19836a816af5cfb3439ba15fefc1e754545c.zip
Use EVP_MAX_MD_SIZE for the key size for now as discussed on icb.
-rw-r--r--usr.sbin/smtpd/crypto_backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/crypto_backend.c b/usr.sbin/smtpd/crypto_backend.c
index 21ae943a3fd..a47d86f0960 100644
--- a/usr.sbin/smtpd/crypto_backend.c
+++ b/usr.sbin/smtpd/crypto_backend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crypto_backend.c,v 1.3 2012/08/30 22:38:22 chl Exp $ */
+/* $OpenBSD: crypto_backend.c,v 1.4 2012/08/31 22:40:56 fgsch Exp $ */
/*
* Copyright (c) 2012 Gilles Chehade <gilles@openbsd.org>
@@ -41,7 +41,7 @@
static struct crypto_params {
const EVP_CIPHER *cipher;
const EVP_MD *digest;
- uint8_t key[];
+ uint8_t key[EVP_MAX_MD_SIZE];
} cp;