summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/rand/rand_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-07-10 22:45:56 +0000
committerjsing <jsing@openbsd.org>2014-07-10 22:45:56 +0000
commit8cf4d6a6f06280da23bb640b5f3f1330158a5205 (patch)
tree52a199a950283c93e9a3854f5f0db0a89b19e9c7 /lib/libcrypto/rand/rand_lib.c
parentTest relayd error message for a broken config file. (diff)
downloadwireguard-openbsd-8cf4d6a6f06280da23bb640b5f3f1330158a5205.tar.xz
wireguard-openbsd-8cf4d6a6f06280da23bb640b5f3f1330158a5205.zip
Explicitly include <openssl/opensslconf.h> in every file that references
an OPENSSL_NO_* define. This avoids relying on something else pulling it in for us, plus it fixes several cases where the #ifndef OPENSSL_NO_XYZ is never going to do anything, since OPENSSL_NO_XYZ will never defined, due to the fact that opensslconf.h has not been included. This also includes some miscellaneous sorting/tidying of headers.
Diffstat (limited to 'lib/libcrypto/rand/rand_lib.c')
-rw-r--r--lib/libcrypto/rand/rand_lib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libcrypto/rand/rand_lib.c b/lib/libcrypto/rand/rand_lib.c
index 200a868d709..38c15699404 100644
--- a/lib/libcrypto/rand/rand_lib.c
+++ b/lib/libcrypto/rand/rand_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rand_lib.c,v 1.17 2014/06/12 15:49:30 deraadt Exp $ */
+/* $OpenBSD: rand_lib.c,v 1.18 2014/07/10 22:45:57 jsing Exp $ */
/*
* Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
*
@@ -14,6 +14,9 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+
+#include <openssl/opensslconf.h>
+
#include "cryptlib.h"
#include <openssl/rand.h>