summaryrefslogtreecommitdiff
path: root/lib/libcrypto/evp/digest.c
diff options
context:
space:
mode:
authorDoug Hogan <doug@cvs.openbsd.org>2015-02-11 03:19:38 +0000
committerDoug Hogan <doug@cvs.openbsd.org>2015-02-11 03:19:38 +0000
commit4e83af938ec9d80471909712f9215f9c733a79fa (patch)
tree38d923738b2ea24e064894aacc4aa0a0dd790515 /lib/libcrypto/evp/digest.c
parent4fb8a1612ed9bb5760fea57f0d5dbf73dcf40dfa (diff)
Enable building with -DOPENSSL_NO_DEPRECATED.
If you didn't enable deprecated code, there were missing err.h and bn.h includes. This commit allows building with or without deprecated code. This was not derived from an OpenSSL commit. However, they recently enabled OPENSSL_NO_DEPRECATED in git and fixed these header problems in a different way. Verified with clang that this only changes line numbers in the generated asm. ok miod@
Diffstat (limited to 'lib/libcrypto/evp/digest.c')
-rw-r--r--lib/libcrypto/evp/digest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcrypto/evp/digest.c b/lib/libcrypto/evp/digest.c
index c9fb60d49b5..6d8ed9b4995 100644
--- a/lib/libcrypto/evp/digest.c
+++ b/lib/libcrypto/evp/digest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: digest.c,v 1.25 2015/02/10 09:52:35 miod Exp $ */
+/* $OpenBSD: digest.c,v 1.26 2015/02/11 03:19:37 doug Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -114,6 +114,7 @@
#include <openssl/opensslconf.h>
+#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/objects.h>