summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/dsa/dsa_ossl.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-07-11 08:44:47 +0000
committerjsing <jsing@openbsd.org>2014-07-11 08:44:47 +0000
commitb6ab114e77db2581d5bda2ca4b0aa0d68b2e0f90 (patch)
tree732b2a0b08456ceb9bb211abdcc82bbe057fff19 /lib/libcrypto/dsa/dsa_ossl.c
parentAdd a small note about LibReSSL at the start of this. (diff)
downloadwireguard-openbsd-b6ab114e77db2581d5bda2ca4b0aa0d68b2e0f90.tar.xz
wireguard-openbsd-b6ab114e77db2581d5bda2ca4b0aa0d68b2e0f90.zip
Only import cryptlib.h in the four source files that actually need it.
Remove the openssl public includes from cryptlib.h and add a small number of includes into the source files that actually need them. While here, also sort/group/tidy the includes. ok beck@ miod@
Diffstat (limited to 'lib/libcrypto/dsa/dsa_ossl.c')
-rw-r--r--lib/libcrypto/dsa/dsa_ossl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libcrypto/dsa/dsa_ossl.c b/lib/libcrypto/dsa/dsa_ossl.c
index 17119eb187a..5bff836c500 100644
--- a/lib/libcrypto/dsa/dsa_ossl.c
+++ b/lib/libcrypto/dsa/dsa_ossl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dsa_ossl.c,v 1.19 2014/07/09 10:16:24 miod Exp $ */
+/* $OpenBSD: dsa_ossl.c,v 1.20 2014/07/11 08:44:48 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -59,12 +59,13 @@
/* Original version from Steven Schoch <schoch@sheba.arc.nasa.gov> */
#include <stdio.h>
-#include "cryptlib.h"
+
+#include <openssl/asn1.h>
#include <openssl/bn.h>
-#include <openssl/sha.h>
#include <openssl/dsa.h>
+#include <openssl/err.h>
#include <openssl/rand.h>
-#include <openssl/asn1.h>
+#include <openssl/sha.h>
static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,