summaryrefslogtreecommitdiff
path: root/src/usr.bin
diff options
context:
space:
mode:
authordoug <>2015-02-11 03:19:37 +0000
committerdoug <>2015-02-11 03:19:37 +0000
commitdea579e3ced20a997dc9c2b82eb0c086555a68b8 (patch)
tree2d213cc4df03f8f141841d2ca287094d778f0ca1 /src/usr.bin
parentc26652e36ac1ecfa50a2d217fdd0c2786495c552 (diff)
downloadopenbsd-dea579e3ced20a997dc9c2b82eb0c086555a68b8.tar.gz
openbsd-dea579e3ced20a997dc9c2b82eb0c086555a68b8.tar.bz2
openbsd-dea579e3ced20a997dc9c2b82eb0c086555a68b8.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 'src/usr.bin')
-rw-r--r--src/usr.bin/openssl/prime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/prime.c b/src/usr.bin/openssl/prime.c
index 98fcca69c2..c597110d54 100644
--- a/src/usr.bin/openssl/prime.c
+++ b/src/usr.bin/openssl/prime.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: prime.c,v 1.5 2015/01/13 03:42:36 lteo Exp $ */ 1/* $OpenBSD: prime.c,v 1.6 2015/02/11 03:19:37 doug Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2004 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2004 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -54,6 +54,7 @@
54#include "apps.h" 54#include "apps.h"
55 55
56#include <openssl/bn.h> 56#include <openssl/bn.h>
57#include <openssl/err.h>
57 58
58struct { 59struct {
59 int bits; 60 int bits;