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/dsa/dsa_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/dsa/dsa_lib.c')
-rw-r--r-- | lib/libcrypto/dsa/dsa_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcrypto/dsa/dsa_lib.c b/lib/libcrypto/dsa/dsa_lib.c index 1cfd6ce6b83..8016f2f7cbd 100644 --- a/lib/libcrypto/dsa/dsa_lib.c +++ b/lib/libcrypto/dsa/dsa_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsa_lib.c,v 1.21 2014/07/12 16:03:37 miod Exp $ */ +/* $OpenBSD: dsa_lib.c,v 1.22 2015/02/11 03:19:37 doug Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -65,6 +65,7 @@ #include <openssl/asn1.h> #include <openssl/bn.h> #include <openssl/dsa.h> +#include <openssl/err.h> #ifndef OPENSSL_NO_DH #include <openssl/dh.h> |