summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authordoug <doug@openbsd.org>2015-02-11 03:19:37 +0000
committerdoug <doug@openbsd.org>2015-02-11 03:19:37 +0000
commita7b8f3c1351113a111f1fdd1865a6da7095e7cd2 (patch)
tree23e730eff938cf7c828ee7dc6f0e396f0caa87ad /lib/libssl/ssl_lib.c
parentRemove dead code (IMSG_HOST_DNS has been moved from the parent to (diff)
downloadwireguard-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/libssl/ssl_lib.c')
-rw-r--r--lib/libssl/ssl_lib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c
index 8ebcb74ab9a..34f83089201 100644
--- a/lib/libssl/ssl_lib.c
+++ b/lib/libssl/ssl_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_lib.c,v 1.97 2015/02/09 07:17:55 doug Exp $ */
+/* $OpenBSD: ssl_lib.c,v 1.98 2015/02/11 03:19:37 doug Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -144,6 +144,7 @@
#include "ssl_locl.h"
+#include <openssl/bn.h>
#include <openssl/dh.h>
#include <openssl/lhash.h>
#include <openssl/objects.h>