diff options
| author | jsing <> | 2014-07-11 08:44:49 +0000 |
|---|---|---|
| committer | jsing <> | 2014-07-11 08:44:49 +0000 |
| commit | 74e2c009c83ad374bd6acdcfc376a384e25ab007 (patch) | |
| tree | 0e726f9e971e00f4c8cd8afab71589803fc11b7f /src/lib/libcrypto/dsa/dsa_ossl.c | |
| parent | 7610da071a20f4325acc14cb2e961617a821ab35 (diff) | |
| download | openbsd-74e2c009c83ad374bd6acdcfc376a384e25ab007.tar.gz openbsd-74e2c009c83ad374bd6acdcfc376a384e25ab007.tar.bz2 openbsd-74e2c009c83ad374bd6acdcfc376a384e25ab007.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 'src/lib/libcrypto/dsa/dsa_ossl.c')
| -rw-r--r-- | src/lib/libcrypto/dsa/dsa_ossl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_ossl.c b/src/lib/libcrypto/dsa/dsa_ossl.c index 17119eb187..5bff836c50 100644 --- a/src/lib/libcrypto/dsa/dsa_ossl.c +++ b/src/lib/libcrypto/dsa/dsa_ossl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dsa_ossl.c,v 1.19 2014/07/09 10:16:24 miod Exp $ */ | 1 | /* $OpenBSD: dsa_ossl.c,v 1.20 2014/07/11 08:44:48 jsing Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -59,12 +59,13 @@ | |||
| 59 | /* Original version from Steven Schoch <schoch@sheba.arc.nasa.gov> */ | 59 | /* Original version from Steven Schoch <schoch@sheba.arc.nasa.gov> */ |
| 60 | 60 | ||
| 61 | #include <stdio.h> | 61 | #include <stdio.h> |
| 62 | #include "cryptlib.h" | 62 | |
| 63 | #include <openssl/asn1.h> | ||
| 63 | #include <openssl/bn.h> | 64 | #include <openssl/bn.h> |
| 64 | #include <openssl/sha.h> | ||
| 65 | #include <openssl/dsa.h> | 65 | #include <openssl/dsa.h> |
| 66 | #include <openssl/err.h> | ||
| 66 | #include <openssl/rand.h> | 67 | #include <openssl/rand.h> |
| 67 | #include <openssl/asn1.h> | 68 | #include <openssl/sha.h> |
| 68 | 69 | ||
| 69 | static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); | 70 | static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); |
| 70 | static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, | 71 | static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, |
