diff options
author | 2015-02-11 03:19:37 +0000 | |
---|---|---|
committer | 2015-02-11 03:19:37 +0000 | |
commit | a7b8f3c1351113a111f1fdd1865a6da7095e7cd2 (patch) | |
tree | 23e730eff938cf7c828ee7dc6f0e396f0caa87ad /lib/libcrypto/dh/dh_lib.c | |
parent | Remove dead code (IMSG_HOST_DNS has been moved from the parent to (diff) | |
download | wireguard-openbsd-a7b8f3c1351113a111f1fdd1865a6da7095e7cd2.tar.xz wireguard-openbsd-a7b8f3c1351113a111f1fdd1865a6da7095e7cd2.zip |
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/dh/dh_lib.c')
-rw-r--r-- | lib/libcrypto/dh/dh_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcrypto/dh/dh_lib.c b/lib/libcrypto/dh/dh_lib.c index c438f387c01..defe1c74b4f 100644 --- a/lib/libcrypto/dh/dh_lib.c +++ b/lib/libcrypto/dh/dh_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dh_lib.c,v 1.20 2014/07/12 16:03:37 miod Exp $ */ +/* $OpenBSD: dh_lib.c,v 1.21 2015/02/11 03:19:37 doug Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -62,6 +62,7 @@ #include <openssl/bn.h> #include <openssl/dh.h> +#include <openssl/err.h> #ifndef OPENSSL_NO_ENGINE #include <openssl/engine.h> |