diff options
author | Doug Hogan <doug@cvs.openbsd.org> | 2015-02-11 03:19:38 +0000 |
---|---|---|
committer | Doug Hogan <doug@cvs.openbsd.org> | 2015-02-11 03:19:38 +0000 |
commit | f381717485af2fc9b1c8a8000fb5c948e224b926 (patch) | |
tree | d1bdfd0a34d2fa438c237ff50ddc0c6f22796424 /usr.bin/openssl/prime.c | |
parent | 1010cd41d7d06b5d50619b0b7deb135acf96c2ad (diff) |
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 'usr.bin/openssl/prime.c')
-rw-r--r-- | usr.bin/openssl/prime.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/openssl/prime.c b/usr.bin/openssl/prime.c index 98fcca69c2e..c597110d543 100644 --- a/usr.bin/openssl/prime.c +++ b/usr.bin/openssl/prime.c @@ -1,4 +1,4 @@ -/* $OpenBSD: prime.c,v 1.5 2015/01/13 03:42:36 lteo Exp $ */ +/* $OpenBSD: prime.c,v 1.6 2015/02/11 03:19:37 doug Exp $ */ /* ==================================================================== * Copyright (c) 2004 The OpenSSL Project. All rights reserved. * @@ -54,6 +54,7 @@ #include "apps.h" #include <openssl/bn.h> +#include <openssl/err.h> struct { int bits; |