diff options
Diffstat (limited to 'src/lib/libcrypto/pem')
-rw-r--r-- | src/lib/libcrypto/pem/pem_all.c | 16 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pem_info.c | 15 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pem_lib.c | 13 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pem_oth.c | 9 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pem_pk8.c | 11 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pem_pkey.c | 11 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pem_seal.c | 7 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pem_sign.c | 9 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pem_x509.c | 8 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pem_xaux.c | 8 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pvkfmt.c | 7 |
11 files changed, 61 insertions, 53 deletions
diff --git a/src/lib/libcrypto/pem/pem_all.c b/src/lib/libcrypto/pem/pem_all.c index e883acdc65..7df917b01c 100644 --- a/src/lib/libcrypto/pem/pem_all.c +++ b/src/lib/libcrypto/pem/pem_all.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pem_all.c,v 1.14 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: pem_all.c,v 1.15 2014/07/11 08:44:49 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 | * |
@@ -113,20 +113,20 @@ | |||
113 | 113 | ||
114 | #include <openssl/opensslconf.h> | 114 | #include <openssl/opensslconf.h> |
115 | 115 | ||
116 | #include "cryptlib.h" | ||
117 | #include <openssl/bio.h> | 116 | #include <openssl/bio.h> |
118 | #include <openssl/evp.h> | 117 | #include <openssl/evp.h> |
119 | #include <openssl/x509.h> | ||
120 | #include <openssl/pkcs7.h> | ||
121 | #include <openssl/pem.h> | 118 | #include <openssl/pem.h> |
122 | #ifndef OPENSSL_NO_RSA | 119 | #include <openssl/pkcs7.h> |
123 | #include <openssl/rsa.h> | 120 | #include <openssl/x509.h> |
121 | |||
122 | #ifndef OPENSSL_NO_DH | ||
123 | #include <openssl/dh.h> | ||
124 | #endif | 124 | #endif |
125 | #ifndef OPENSSL_NO_DSA | 125 | #ifndef OPENSSL_NO_DSA |
126 | #include <openssl/dsa.h> | 126 | #include <openssl/dsa.h> |
127 | #endif | 127 | #endif |
128 | #ifndef OPENSSL_NO_DH | 128 | #ifndef OPENSSL_NO_RSA |
129 | #include <openssl/dh.h> | 129 | #include <openssl/rsa.h> |
130 | #endif | 130 | #endif |
131 | 131 | ||
132 | #ifndef OPENSSL_NO_RSA | 132 | #ifndef OPENSSL_NO_RSA |
diff --git a/src/lib/libcrypto/pem/pem_info.c b/src/lib/libcrypto/pem/pem_info.c index eaf70e4267..9ddcb56596 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.18 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: pem_info.c,v 1.19 2014/07/11 08:44:49 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 | * |
@@ -61,18 +61,19 @@ | |||
61 | 61 | ||
62 | #include <openssl/opensslconf.h> | 62 | #include <openssl/opensslconf.h> |
63 | 63 | ||
64 | #include "cryptlib.h" | ||
65 | #include <openssl/buffer.h> | 64 | #include <openssl/buffer.h> |
66 | #include <openssl/objects.h> | 65 | #include <openssl/err.h> |
67 | #include <openssl/evp.h> | 66 | #include <openssl/evp.h> |
68 | #include <openssl/x509.h> | 67 | #include <openssl/objects.h> |
69 | #include <openssl/pem.h> | 68 | #include <openssl/pem.h> |
70 | #ifndef OPENSSL_NO_RSA | 69 | #include <openssl/x509.h> |
71 | #include <openssl/rsa.h> | 70 | |
72 | #endif | ||
73 | #ifndef OPENSSL_NO_DSA | 71 | #ifndef OPENSSL_NO_DSA |
74 | #include <openssl/dsa.h> | 72 | #include <openssl/dsa.h> |
75 | #endif | 73 | #endif |
74 | #ifndef OPENSSL_NO_RSA | ||
75 | #include <openssl/rsa.h> | ||
76 | #endif | ||
76 | 77 | ||
77 | STACK_OF(X509_INFO) * | 78 | STACK_OF(X509_INFO) * |
78 | PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, | 79 | PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, |
diff --git a/src/lib/libcrypto/pem/pem_lib.c b/src/lib/libcrypto/pem/pem_lib.c index 70e2aa633d..8e5c82c245 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.32 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: pem_lib.c,v 1.33 2014/07/11 08:44:49 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 | * |
@@ -62,15 +62,14 @@ | |||
62 | 62 | ||
63 | #include <openssl/opensslconf.h> | 63 | #include <openssl/opensslconf.h> |
64 | 64 | ||
65 | #include "cryptlib.h" | ||
66 | #include <openssl/buffer.h> | 65 | #include <openssl/buffer.h> |
67 | #include <openssl/objects.h> | ||
68 | #include <openssl/evp.h> | 66 | #include <openssl/evp.h> |
69 | #include <openssl/rand.h> | 67 | #include <openssl/objects.h> |
70 | #include <openssl/x509.h> | ||
71 | #include <openssl/pem.h> | 68 | #include <openssl/pem.h> |
72 | #include <openssl/pkcs12.h> | 69 | #include <openssl/pkcs12.h> |
73 | #include "asn1_locl.h" | 70 | #include <openssl/rand.h> |
71 | #include <openssl/x509.h> | ||
72 | |||
74 | #ifndef OPENSSL_NO_DES | 73 | #ifndef OPENSSL_NO_DES |
75 | #include <openssl/des.h> | 74 | #include <openssl/des.h> |
76 | #endif | 75 | #endif |
@@ -78,6 +77,8 @@ | |||
78 | #include <openssl/engine.h> | 77 | #include <openssl/engine.h> |
79 | #endif | 78 | #endif |
80 | 79 | ||
80 | #include "asn1_locl.h" | ||
81 | |||
81 | #define MIN_LENGTH 4 | 82 | #define MIN_LENGTH 4 |
82 | 83 | ||
83 | static int load_iv(char **fromp, unsigned char *to, int num); | 84 | static int load_iv(char **fromp, unsigned char *to, int num); |
diff --git a/src/lib/libcrypto/pem/pem_oth.c b/src/lib/libcrypto/pem/pem_oth.c index 41a1696f9a..d56c6b26d1 100644 --- a/src/lib/libcrypto/pem/pem_oth.c +++ b/src/lib/libcrypto/pem/pem_oth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pem_oth.c,v 1.5 2014/06/12 15:49:30 deraadt Exp $ */ | 1 | /* $OpenBSD: pem_oth.c,v 1.6 2014/07/11 08:44:49 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,13 +57,14 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include "cryptlib.h" | 60 | |
61 | #include <openssl/buffer.h> | 61 | #include <openssl/buffer.h> |
62 | #include <openssl/objects.h> | 62 | #include <openssl/err.h> |
63 | #include <openssl/evp.h> | 63 | #include <openssl/evp.h> |
64 | #include <openssl/objects.h> | ||
65 | #include <openssl/pem.h> | ||
64 | #include <openssl/rand.h> | 66 | #include <openssl/rand.h> |
65 | #include <openssl/x509.h> | 67 | #include <openssl/x509.h> |
66 | #include <openssl/pem.h> | ||
67 | 68 | ||
68 | /* Handle 'other' PEMs: not private keys */ | 69 | /* Handle 'other' PEMs: not private keys */ |
69 | 70 | ||
diff --git a/src/lib/libcrypto/pem/pem_pk8.c b/src/lib/libcrypto/pem/pem_pk8.c index fc53826077..dafbd13814 100644 --- a/src/lib/libcrypto/pem/pem_pk8.c +++ b/src/lib/libcrypto/pem/pem_pk8.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pem_pk8.c,v 1.6 2014/06/12 15:49:30 deraadt Exp $ */ | 1 | /* $OpenBSD: pem_pk8.c,v 1.7 2014/07/11 08:44:49 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,14 +57,15 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include "cryptlib.h" | 60 | |
61 | #include <openssl/buffer.h> | 61 | #include <openssl/buffer.h> |
62 | #include <openssl/objects.h> | 62 | #include <openssl/err.h> |
63 | #include <openssl/evp.h> | 63 | #include <openssl/evp.h> |
64 | #include <openssl/objects.h> | ||
65 | #include <openssl/pem.h> | ||
66 | #include <openssl/pkcs12.h> | ||
64 | #include <openssl/rand.h> | 67 | #include <openssl/rand.h> |
65 | #include <openssl/x509.h> | 68 | #include <openssl/x509.h> |
66 | #include <openssl/pkcs12.h> | ||
67 | #include <openssl/pem.h> | ||
68 | 69 | ||
69 | static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder, int nid, | 70 | static int do_pk8pkey(BIO *bp, EVP_PKEY *x, int isder, int nid, |
70 | const EVP_CIPHER *enc, char *kstr, int klen, pem_password_cb *cb, void *u); | 71 | const EVP_CIPHER *enc, char *kstr, int klen, pem_password_cb *cb, void *u); |
diff --git a/src/lib/libcrypto/pem/pem_pkey.c b/src/lib/libcrypto/pem/pem_pkey.c index 68d6590f14..7e5e4f5771 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.16 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: pem_pkey.c,v 1.17 2014/07/11 08:44:49 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 | * |
@@ -61,17 +61,18 @@ | |||
61 | 61 | ||
62 | #include <openssl/opensslconf.h> | 62 | #include <openssl/opensslconf.h> |
63 | 63 | ||
64 | #include "cryptlib.h" | ||
65 | #include <openssl/buffer.h> | 64 | #include <openssl/buffer.h> |
66 | #include <openssl/objects.h> | ||
67 | #include <openssl/evp.h> | 65 | #include <openssl/evp.h> |
66 | #include <openssl/objects.h> | ||
67 | #include <openssl/pem.h> | ||
68 | #include <openssl/pkcs12.h> | ||
68 | #include <openssl/rand.h> | 69 | #include <openssl/rand.h> |
69 | #include <openssl/x509.h> | 70 | #include <openssl/x509.h> |
70 | #include <openssl/pkcs12.h> | 71 | |
71 | #include <openssl/pem.h> | ||
72 | #ifndef OPENSSL_NO_ENGINE | 72 | #ifndef OPENSSL_NO_ENGINE |
73 | #include <openssl/engine.h> | 73 | #include <openssl/engine.h> |
74 | #endif | 74 | #endif |
75 | |||
75 | #include "asn1_locl.h" | 76 | #include "asn1_locl.h" |
76 | 77 | ||
77 | int pem_check_suffix(const char *pem_str, const char *suffix); | 78 | int pem_check_suffix(const char *pem_str, const char *suffix); |
diff --git a/src/lib/libcrypto/pem/pem_seal.c b/src/lib/libcrypto/pem/pem_seal.c index 08680e45db..90ba01584c 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.19 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: pem_seal.c,v 1.20 2014/07/11 08:44:49 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 | * |
@@ -62,13 +62,14 @@ | |||
62 | #include <openssl/opensslconf.h> /* for OPENSSL_NO_RSA */ | 62 | #include <openssl/opensslconf.h> /* for OPENSSL_NO_RSA */ |
63 | 63 | ||
64 | #ifndef OPENSSL_NO_RSA | 64 | #ifndef OPENSSL_NO_RSA |
65 | #include "cryptlib.h" | 65 | |
66 | #include <openssl/err.h> | ||
66 | #include <openssl/evp.h> | 67 | #include <openssl/evp.h> |
67 | #include <openssl/rand.h> | 68 | #include <openssl/rand.h> |
68 | #include <openssl/objects.h> | 69 | #include <openssl/objects.h> |
69 | #include <openssl/x509.h> | ||
70 | #include <openssl/pem.h> | 70 | #include <openssl/pem.h> |
71 | #include <openssl/rsa.h> | 71 | #include <openssl/rsa.h> |
72 | #include <openssl/x509.h> | ||
72 | 73 | ||
73 | int | 74 | int |
74 | PEM_SealInit(PEM_ENCODE_SEAL_CTX *ctx, EVP_CIPHER *type, EVP_MD *md_type, | 75 | PEM_SealInit(PEM_ENCODE_SEAL_CTX *ctx, EVP_CIPHER *type, EVP_MD *md_type, |
diff --git a/src/lib/libcrypto/pem/pem_sign.c b/src/lib/libcrypto/pem/pem_sign.c index f1c4d4dcb9..0f996c7220 100644 --- a/src/lib/libcrypto/pem/pem_sign.c +++ b/src/lib/libcrypto/pem/pem_sign.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pem_sign.c,v 1.10 2014/06/12 15:49:30 deraadt Exp $ */ | 1 | /* $OpenBSD: pem_sign.c,v 1.11 2014/07/11 08:44:49 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,12 +57,13 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include "cryptlib.h" | 60 | |
61 | #include <openssl/rand.h> | 61 | #include <openssl/err.h> |
62 | #include <openssl/evp.h> | 62 | #include <openssl/evp.h> |
63 | #include <openssl/objects.h> | 63 | #include <openssl/objects.h> |
64 | #include <openssl/x509.h> | ||
65 | #include <openssl/pem.h> | 64 | #include <openssl/pem.h> |
65 | #include <openssl/rand.h> | ||
66 | #include <openssl/x509.h> | ||
66 | 67 | ||
67 | void | 68 | void |
68 | PEM_SignInit(EVP_MD_CTX *ctx, EVP_MD *type) | 69 | PEM_SignInit(EVP_MD_CTX *ctx, EVP_MD *type) |
diff --git a/src/lib/libcrypto/pem/pem_x509.c b/src/lib/libcrypto/pem/pem_x509.c index 7b4b888ea9..e4b7f1c2c6 100644 --- a/src/lib/libcrypto/pem/pem_x509.c +++ b/src/lib/libcrypto/pem/pem_x509.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pem_x509.c,v 1.5 2014/06/12 15:49:30 deraadt Exp $ */ | 1 | /* $OpenBSD: pem_x509.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,11 +57,11 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include "cryptlib.h" | 60 | |
61 | #include <openssl/bio.h> | 61 | #include <openssl/bio.h> |
62 | #include <openssl/evp.h> | 62 | #include <openssl/evp.h> |
63 | #include <openssl/x509.h> | ||
64 | #include <openssl/pkcs7.h> | ||
65 | #include <openssl/pem.h> | 63 | #include <openssl/pem.h> |
64 | #include <openssl/pkcs7.h> | ||
65 | #include <openssl/x509.h> | ||
66 | 66 | ||
67 | IMPLEMENT_PEM_rw(X509, X509, PEM_STRING_X509, X509) | 67 | IMPLEMENT_PEM_rw(X509, X509, PEM_STRING_X509, X509) |
diff --git a/src/lib/libcrypto/pem/pem_xaux.c b/src/lib/libcrypto/pem/pem_xaux.c index 99e2cd367b..eb76840532 100644 --- a/src/lib/libcrypto/pem/pem_xaux.c +++ b/src/lib/libcrypto/pem/pem_xaux.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pem_xaux.c,v 1.6 2014/06/12 15:49:30 deraadt Exp $ */ | 1 | /* $OpenBSD: pem_xaux.c,v 1.7 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,12 +57,12 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include "cryptlib.h" | 60 | |
61 | #include <openssl/bio.h> | 61 | #include <openssl/bio.h> |
62 | #include <openssl/evp.h> | 62 | #include <openssl/evp.h> |
63 | #include <openssl/x509.h> | ||
64 | #include <openssl/pkcs7.h> | ||
65 | #include <openssl/pem.h> | 63 | #include <openssl/pem.h> |
64 | #include <openssl/pkcs7.h> | ||
65 | #include <openssl/x509.h> | ||
66 | 66 | ||
67 | IMPLEMENT_PEM_rw(X509_AUX, X509, PEM_STRING_X509_TRUSTED, X509_AUX) | 67 | IMPLEMENT_PEM_rw(X509_AUX, X509, PEM_STRING_X509_TRUSTED, X509_AUX) |
68 | IMPLEMENT_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR, PEM_STRING_X509_PAIR, | 68 | IMPLEMENT_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR, PEM_STRING_X509_PAIR, |
diff --git a/src/lib/libcrypto/pem/pvkfmt.c b/src/lib/libcrypto/pem/pvkfmt.c index 8a945b4dd7..55cfffa7bc 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.8 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: pvkfmt.c,v 1.9 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 2005. | 3 | * project 2005. |
4 | */ | 4 | */ |
@@ -64,10 +64,11 @@ | |||
64 | 64 | ||
65 | #include <openssl/opensslconf.h> | 65 | #include <openssl/opensslconf.h> |
66 | 66 | ||
67 | #include "cryptlib.h" | 67 | #include <openssl/bn.h> |
68 | #include <openssl/err.h> | ||
68 | #include <openssl/pem.h> | 69 | #include <openssl/pem.h> |
69 | #include <openssl/rand.h> | 70 | #include <openssl/rand.h> |
70 | #include <openssl/bn.h> | 71 | |
71 | #if !defined(OPENSSL_NO_RSA) && !defined(OPENSSL_NO_DSA) | 72 | #if !defined(OPENSSL_NO_RSA) && !defined(OPENSSL_NO_DSA) |
72 | #include <openssl/dsa.h> | 73 | #include <openssl/dsa.h> |
73 | #include <openssl/rsa.h> | 74 | #include <openssl/rsa.h> |