diff options
author | jsing <> | 2014-07-10 13:58:23 +0000 |
---|---|---|
committer | jsing <> | 2014-07-10 13:58:23 +0000 |
commit | f8e6fe02fc43958d79cf9326eebabf8ef8d3ae34 (patch) | |
tree | 520bd0eaa8855b175013ab92f4175f47f1099115 /src/lib/libcrypto/pem | |
parent | a2a7393cf3489febec569cfa8aab8735e4f58339 (diff) | |
download | openbsd-f8e6fe02fc43958d79cf9326eebabf8ef8d3ae34.tar.gz openbsd-f8e6fe02fc43958d79cf9326eebabf8ef8d3ae34.tar.bz2 openbsd-f8e6fe02fc43958d79cf9326eebabf8ef8d3ae34.zip |
Stop including standard headers via cryptlib.h - pull in the headers that
are needed in the source files that actually require them.
ok beck@ miod@
Diffstat (limited to 'src/lib/libcrypto/pem')
-rw-r--r-- | src/lib/libcrypto/pem/pem_info.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pem_lib.c | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pem_pkey.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pem_seal.c | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pvkfmt.c | 4 |
5 files changed, 17 insertions, 7 deletions
diff --git a/src/lib/libcrypto/pem/pem_info.c b/src/lib/libcrypto/pem/pem_info.c index 62e2d4853f..0c8946550e 100644 --- a/src/lib/libcrypto/pem/pem_info.c +++ b/src/lib/libcrypto/pem/pem_info.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pem_info.c,v 1.16 2014/07/10 11:20:49 miod Exp $ */ | 1 | /* $OpenBSD: pem_info.c,v 1.17 2014/07/10 13:58:23 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 | * |
@@ -57,6 +57,8 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include <string.h> | ||
61 | |||
60 | #include "cryptlib.h" | 62 | #include "cryptlib.h" |
61 | #include <openssl/buffer.h> | 63 | #include <openssl/buffer.h> |
62 | #include <openssl/objects.h> | 64 | #include <openssl/objects.h> |
diff --git a/src/lib/libcrypto/pem/pem_lib.c b/src/lib/libcrypto/pem/pem_lib.c index 1a531d7749..130a2739a5 100644 --- a/src/lib/libcrypto/pem/pem_lib.c +++ b/src/lib/libcrypto/pem/pem_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pem_lib.c,v 1.30 2014/07/10 11:25:13 tedu Exp $ */ | 1 | /* $OpenBSD: pem_lib.c,v 1.31 2014/07/10 13:58:23 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 | * |
@@ -56,8 +56,10 @@ | |||
56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <stdio.h> | ||
60 | #include <ctype.h> | 59 | #include <ctype.h> |
60 | #include <stdio.h> | ||
61 | #include <string.h> | ||
62 | |||
61 | #include "cryptlib.h" | 63 | #include "cryptlib.h" |
62 | #include <openssl/buffer.h> | 64 | #include <openssl/buffer.h> |
63 | #include <openssl/objects.h> | 65 | #include <openssl/objects.h> |
diff --git a/src/lib/libcrypto/pem/pem_pkey.c b/src/lib/libcrypto/pem/pem_pkey.c index c2250b7fb1..cfa3c12752 100644 --- a/src/lib/libcrypto/pem/pem_pkey.c +++ b/src/lib/libcrypto/pem/pem_pkey.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pem_pkey.c,v 1.14 2014/06/12 15:49:30 deraadt Exp $ */ | 1 | /* $OpenBSD: pem_pkey.c,v 1.15 2014/07/10 13:58:23 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 | * |
@@ -57,6 +57,8 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include <string.h> | ||
61 | |||
60 | #include "cryptlib.h" | 62 | #include "cryptlib.h" |
61 | #include <openssl/buffer.h> | 63 | #include <openssl/buffer.h> |
62 | #include <openssl/objects.h> | 64 | #include <openssl/objects.h> |
diff --git a/src/lib/libcrypto/pem/pem_seal.c b/src/lib/libcrypto/pem/pem_seal.c index 459ea413a7..45ea52b24b 100644 --- a/src/lib/libcrypto/pem/pem_seal.c +++ b/src/lib/libcrypto/pem/pem_seal.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pem_seal.c,v 1.17 2014/06/12 15:49:30 deraadt Exp $ */ | 1 | /* $OpenBSD: pem_seal.c,v 1.18 2014/07/10 13:58:23 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 | * |
@@ -56,9 +56,11 @@ | |||
56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <stdio.h> | ||
60 | #include <string.h> | ||
61 | |||
59 | #include <openssl/opensslconf.h> /* for OPENSSL_NO_RSA */ | 62 | #include <openssl/opensslconf.h> /* for OPENSSL_NO_RSA */ |
60 | #ifndef OPENSSL_NO_RSA | 63 | #ifndef OPENSSL_NO_RSA |
61 | #include <stdio.h> | ||
62 | #include "cryptlib.h" | 64 | #include "cryptlib.h" |
63 | #include <openssl/evp.h> | 65 | #include <openssl/evp.h> |
64 | #include <openssl/rand.h> | 66 | #include <openssl/rand.h> |
diff --git a/src/lib/libcrypto/pem/pvkfmt.c b/src/lib/libcrypto/pem/pvkfmt.c index c3e77cbeb6..53c96e088c 100644 --- a/src/lib/libcrypto/pem/pvkfmt.c +++ b/src/lib/libcrypto/pem/pvkfmt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pvkfmt.c,v 1.6 2014/06/12 15:49:30 deraadt Exp $ */ | 1 | /* $OpenBSD: pvkfmt.c,v 1.7 2014/07/10 13:58:23 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 2005. | 3 | * project 2005. |
4 | */ | 4 | */ |
@@ -60,6 +60,8 @@ | |||
60 | * and PRIVATEKEYBLOB). | 60 | * and PRIVATEKEYBLOB). |
61 | */ | 61 | */ |
62 | 62 | ||
63 | #include <string.h> | ||
64 | |||
63 | #include "cryptlib.h" | 65 | #include "cryptlib.h" |
64 | #include <openssl/pem.h> | 66 | #include <openssl/pem.h> |
65 | #include <openssl/rand.h> | 67 | #include <openssl/rand.h> |