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/ec | |
| 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/ec')
| -rw-r--r-- | src/lib/libcrypto/ec/ec_ameth.c | 10 | ||||
| -rw-r--r-- | src/lib/libcrypto/ec/ec_pmeth.c | 7 | ||||
| -rw-r--r-- | src/lib/libcrypto/ec/eck_prn.c | 8 |
3 files changed, 14 insertions, 11 deletions
diff --git a/src/lib/libcrypto/ec/ec_ameth.c b/src/lib/libcrypto/ec/ec_ameth.c index 6935972de5..93e305b71a 100644 --- a/src/lib/libcrypto/ec/ec_ameth.c +++ b/src/lib/libcrypto/ec/ec_ameth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_ameth.c,v 1.10 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: ec_ameth.c,v 1.11 2014/07/11 08:44:48 jsing Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -60,13 +60,15 @@ | |||
| 60 | 60 | ||
| 61 | #include <openssl/opensslconf.h> | 61 | #include <openssl/opensslconf.h> |
| 62 | 62 | ||
| 63 | #include "cryptlib.h" | ||
| 64 | #include <openssl/x509.h> | ||
| 65 | #include <openssl/ec.h> | ||
| 66 | #include <openssl/bn.h> | 63 | #include <openssl/bn.h> |
| 64 | #include <openssl/ec.h> | ||
| 65 | #include <openssl/err.h> | ||
| 66 | #include <openssl/x509.h> | ||
| 67 | |||
| 67 | #ifndef OPENSSL_NO_CMS | 68 | #ifndef OPENSSL_NO_CMS |
| 68 | #include <openssl/cms.h> | 69 | #include <openssl/cms.h> |
| 69 | #endif | 70 | #endif |
| 71 | |||
| 70 | #include "asn1_locl.h" | 72 | #include "asn1_locl.h" |
| 71 | 73 | ||
| 72 | static int | 74 | static int |
diff --git a/src/lib/libcrypto/ec/ec_pmeth.c b/src/lib/libcrypto/ec/ec_pmeth.c index 043c2a5a0c..7ba1d50d7f 100644 --- a/src/lib/libcrypto/ec/ec_pmeth.c +++ b/src/lib/libcrypto/ec/ec_pmeth.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ec_pmeth.c,v 1.6 2014/07/10 13:58:22 jsing Exp $ */ | 1 | /* $OpenBSD: ec_pmeth.c,v 1.7 2014/07/11 08:44:48 jsing Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 2006. | 3 | * project 2006. |
| 4 | */ | 4 | */ |
| @@ -59,12 +59,13 @@ | |||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <string.h> | 60 | #include <string.h> |
| 61 | 61 | ||
| 62 | #include "cryptlib.h" | ||
| 63 | #include <openssl/asn1t.h> | 62 | #include <openssl/asn1t.h> |
| 64 | #include <openssl/x509.h> | ||
| 65 | #include <openssl/ec.h> | 63 | #include <openssl/ec.h> |
| 66 | #include <openssl/ecdsa.h> | 64 | #include <openssl/ecdsa.h> |
| 65 | #include <openssl/err.h> | ||
| 67 | #include <openssl/evp.h> | 66 | #include <openssl/evp.h> |
| 67 | #include <openssl/x509.h> | ||
| 68 | |||
| 68 | #include "evp_locl.h" | 69 | #include "evp_locl.h" |
| 69 | 70 | ||
| 70 | /* EC pkey context structure */ | 71 | /* EC pkey context structure */ |
diff --git a/src/lib/libcrypto/ec/eck_prn.c b/src/lib/libcrypto/ec/eck_prn.c index fb5ee7f52b..b0c8bcd22a 100644 --- a/src/lib/libcrypto/ec/eck_prn.c +++ b/src/lib/libcrypto/ec/eck_prn.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: eck_prn.c,v 1.8 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: eck_prn.c,v 1.9 2014/07/11 08:44:48 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
| 4 | */ | 4 | */ |
| @@ -66,10 +66,10 @@ | |||
| 66 | 66 | ||
| 67 | #include <openssl/opensslconf.h> | 67 | #include <openssl/opensslconf.h> |
| 68 | 68 | ||
| 69 | #include "cryptlib.h" | ||
| 70 | #include <openssl/evp.h> | ||
| 71 | #include <openssl/ec.h> | ||
| 72 | #include <openssl/bn.h> | 69 | #include <openssl/bn.h> |
| 70 | #include <openssl/ec.h> | ||
| 71 | #include <openssl/err.h> | ||
| 72 | #include <openssl/evp.h> | ||
| 73 | 73 | ||
| 74 | int | 74 | int |
| 75 | ECPKParameters_print_fp(FILE * fp, const EC_GROUP * x, int off) | 75 | ECPKParameters_print_fp(FILE * fp, const EC_GROUP * x, int off) |
