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/ocsp | |
| 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/ocsp')
| -rw-r--r-- | src/lib/libcrypto/ocsp/ocsp_cl.c | 9 | ||||
| -rw-r--r-- | src/lib/libcrypto/ocsp/ocsp_ext.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/ocsp/ocsp_lib.c | 10 | ||||
| -rw-r--r-- | src/lib/libcrypto/ocsp/ocsp_srv.c | 9 |
4 files changed, 17 insertions, 16 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp_cl.c b/src/lib/libcrypto/ocsp/ocsp_cl.c index d435adae90..030aaef18c 100644 --- a/src/lib/libcrypto/ocsp/ocsp_cl.c +++ b/src/lib/libcrypto/ocsp/ocsp_cl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ocsp_cl.c,v 1.6 2014/06/12 15:49:30 deraadt Exp $ */ | 1 | /* $OpenBSD: ocsp_cl.c,v 1.7 2014/07/11 08:44:49 jsing Exp $ */ |
| 2 | /* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL | 2 | /* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL |
| 3 | * project. */ | 3 | * project. */ |
| 4 | 4 | ||
| @@ -63,13 +63,14 @@ | |||
| 63 | 63 | ||
| 64 | #include <stdio.h> | 64 | #include <stdio.h> |
| 65 | #include <time.h> | 65 | #include <time.h> |
| 66 | #include <cryptlib.h> | 66 | |
| 67 | #include <openssl/err.h> | ||
| 68 | #include <openssl/ocsp.h> | ||
| 67 | #include <openssl/objects.h> | 69 | #include <openssl/objects.h> |
| 70 | #include <openssl/pem.h> | ||
| 68 | #include <openssl/rand.h> | 71 | #include <openssl/rand.h> |
| 69 | #include <openssl/x509.h> | 72 | #include <openssl/x509.h> |
| 70 | #include <openssl/pem.h> | ||
| 71 | #include <openssl/x509v3.h> | 73 | #include <openssl/x509v3.h> |
| 72 | #include <openssl/ocsp.h> | ||
| 73 | 74 | ||
| 74 | /* Utility functions related to sending OCSP requests and extracting | 75 | /* Utility functions related to sending OCSP requests and extracting |
| 75 | * relevant information from the response. | 76 | * relevant information from the response. |
diff --git a/src/lib/libcrypto/ocsp/ocsp_ext.c b/src/lib/libcrypto/ocsp/ocsp_ext.c index a0e58e7401..c7b9d817ac 100644 --- a/src/lib/libcrypto/ocsp/ocsp_ext.c +++ b/src/lib/libcrypto/ocsp/ocsp_ext.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ocsp_ext.c,v 1.10 2014/07/10 13:58:23 jsing Exp $ */ | 1 | /* $OpenBSD: ocsp_ext.c,v 1.11 2014/07/11 08:44:49 jsing Exp $ */ |
| 2 | /* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL | 2 | /* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL |
| 3 | * project. */ | 3 | * project. */ |
| 4 | 4 | ||
| @@ -61,14 +61,13 @@ | |||
| 61 | * | 61 | * |
| 62 | */ | 62 | */ |
| 63 | 63 | ||
| 64 | #include <cryptlib.h> | ||
| 65 | #include <stdio.h> | 64 | #include <stdio.h> |
| 66 | #include <string.h> | 65 | #include <string.h> |
| 67 | 66 | ||
| 68 | #include <openssl/objects.h> | 67 | #include <openssl/objects.h> |
| 69 | #include <openssl/x509.h> | ||
| 70 | #include <openssl/ocsp.h> | 68 | #include <openssl/ocsp.h> |
| 71 | #include <openssl/rand.h> | 69 | #include <openssl/rand.h> |
| 70 | #include <openssl/x509.h> | ||
| 72 | #include <openssl/x509v3.h> | 71 | #include <openssl/x509v3.h> |
| 73 | 72 | ||
| 74 | /* Standard wrapper functions for extensions */ | 73 | /* Standard wrapper functions for extensions */ |
diff --git a/src/lib/libcrypto/ocsp/ocsp_lib.c b/src/lib/libcrypto/ocsp/ocsp_lib.c index eda627f4ed..8599e48bff 100644 --- a/src/lib/libcrypto/ocsp/ocsp_lib.c +++ b/src/lib/libcrypto/ocsp/ocsp_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ocsp_lib.c,v 1.13 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: ocsp_lib.c,v 1.14 2014/07/11 08:44:49 jsing Exp $ */ |
| 2 | /* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL | 2 | /* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL |
| 3 | * project. */ | 3 | * project. */ |
| 4 | 4 | ||
| @@ -61,19 +61,19 @@ | |||
| 61 | * | 61 | * |
| 62 | */ | 62 | */ |
| 63 | 63 | ||
| 64 | #include <cryptlib.h> | ||
| 65 | #include <stdio.h> | 64 | #include <stdio.h> |
| 66 | #include <string.h> | 65 | #include <string.h> |
| 67 | 66 | ||
| 68 | #include <openssl/opensslconf.h> | 67 | #include <openssl/opensslconf.h> |
| 69 | 68 | ||
| 69 | #include <openssl/asn1t.h> | ||
| 70 | #include <openssl/err.h> | ||
| 70 | #include <openssl/objects.h> | 71 | #include <openssl/objects.h> |
| 72 | #include <openssl/ocsp.h> | ||
| 73 | #include <openssl/pem.h> | ||
| 71 | #include <openssl/rand.h> | 74 | #include <openssl/rand.h> |
| 72 | #include <openssl/x509.h> | 75 | #include <openssl/x509.h> |
| 73 | #include <openssl/pem.h> | ||
| 74 | #include <openssl/x509v3.h> | 76 | #include <openssl/x509v3.h> |
| 75 | #include <openssl/ocsp.h> | ||
| 76 | #include <openssl/asn1t.h> | ||
| 77 | 77 | ||
| 78 | /* Convert a certificate and its issuer to an OCSP_CERTID */ | 78 | /* Convert a certificate and its issuer to an OCSP_CERTID */ |
| 79 | 79 | ||
diff --git a/src/lib/libcrypto/ocsp/ocsp_srv.c b/src/lib/libcrypto/ocsp/ocsp_srv.c index cad3bf81be..c18519fb11 100644 --- a/src/lib/libcrypto/ocsp/ocsp_srv.c +++ b/src/lib/libcrypto/ocsp/ocsp_srv.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ocsp_srv.c,v 1.5 2014/06/12 15:49:30 deraadt Exp $ */ | 1 | /* $OpenBSD: ocsp_srv.c,v 1.6 2014/07/11 08:44:49 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 2001. | 3 | * project 2001. |
| 4 | */ | 4 | */ |
| @@ -57,13 +57,14 @@ | |||
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <cryptlib.h> | 60 | |
| 61 | #include <openssl/err.h> | ||
| 61 | #include <openssl/objects.h> | 62 | #include <openssl/objects.h> |
| 63 | #include <openssl/ocsp.h> | ||
| 64 | #include <openssl/pem.h> | ||
| 62 | #include <openssl/rand.h> | 65 | #include <openssl/rand.h> |
| 63 | #include <openssl/x509.h> | 66 | #include <openssl/x509.h> |
| 64 | #include <openssl/pem.h> | ||
| 65 | #include <openssl/x509v3.h> | 67 | #include <openssl/x509v3.h> |
| 66 | #include <openssl/ocsp.h> | ||
| 67 | 68 | ||
| 68 | /* Utility functions related to sending OCSP responses and extracting | 69 | /* Utility functions related to sending OCSP responses and extracting |
| 69 | * relevant information from the request. | 70 | * relevant information from the request. |
