diff options
author | tb <> | 2022-08-20 09:16:18 +0000 |
---|---|---|
committer | tb <> | 2022-08-20 09:16:18 +0000 |
commit | 95b7defd486f5736d9f91a6f71156c20f91756e9 (patch) | |
tree | fdd2bb0d1e96426572ce7db2e69355ce4e2b606e /src | |
parent | be73a6ddefcc4637dc9eed0c7cf94d06de600b53 (diff) | |
download | openbsd-95b7defd486f5736d9f91a6f71156c20f91756e9.tar.gz openbsd-95b7defd486f5736d9f91a6f71156c20f91756e9.tar.bz2 openbsd-95b7defd486f5736d9f91a6f71156c20f91756e9.zip |
Add an empty pkcs12_local.h and include it where it will soon be needed.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/Makefile | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/pkcs12/p12_add.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/pkcs12/p12_asn.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/pkcs12/p12_attr.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/pkcs12/p12_crt.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/pkcs12/p12_init.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/pkcs12/p12_kiss.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/pkcs12/p12_mutl.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/pkcs12/p12_npas.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/pkcs12/p12_sbag.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/pkcs12/p12_utl.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/pkcs12/pkcs12_local.h | 66 |
12 files changed, 94 insertions, 11 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile index 714f6e80b4..a3091616a5 100644 --- a/src/lib/libcrypto/Makefile +++ b/src/lib/libcrypto/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.78 2022/08/03 20:16:06 tb Exp $ | 1 | # $OpenBSD: Makefile,v 1.79 2022/08/20 09:16:18 tb Exp $ |
2 | 2 | ||
3 | LIB= crypto | 3 | LIB= crypto |
4 | LIBREBUILD=y | 4 | LIBREBUILD=y |
@@ -43,6 +43,7 @@ CFLAGS+= -I${LCRYPTO_SRC}/hmac | |||
43 | CFLAGS+= -I${LCRYPTO_SRC}/kdf | 43 | CFLAGS+= -I${LCRYPTO_SRC}/kdf |
44 | CFLAGS+= -I${LCRYPTO_SRC}/modes | 44 | CFLAGS+= -I${LCRYPTO_SRC}/modes |
45 | CFLAGS+= -I${LCRYPTO_SRC}/ocsp | 45 | CFLAGS+= -I${LCRYPTO_SRC}/ocsp |
46 | CFLAGS+= -I${LCRYPTO_SRC}/pkcs12 | ||
46 | CFLAGS+= -I${LCRYPTO_SRC}/rsa | 47 | CFLAGS+= -I${LCRYPTO_SRC}/rsa |
47 | CFLAGS+= -I${LCRYPTO_SRC}/ts | 48 | CFLAGS+= -I${LCRYPTO_SRC}/ts |
48 | CFLAGS+= -I${LCRYPTO_SRC}/x509 | 49 | CFLAGS+= -I${LCRYPTO_SRC}/x509 |
diff --git a/src/lib/libcrypto/pkcs12/p12_add.c b/src/lib/libcrypto/pkcs12/p12_add.c index e423c76411..d9de395c5b 100644 --- a/src/lib/libcrypto/pkcs12/p12_add.c +++ b/src/lib/libcrypto/pkcs12/p12_add.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p12_add.c,v 1.18 2022/08/03 20:16:06 tb Exp $ */ | 1 | /* $OpenBSD: p12_add.c,v 1.19 2022/08/20 09:16:18 tb 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -61,6 +61,8 @@ | |||
61 | #include <openssl/err.h> | 61 | #include <openssl/err.h> |
62 | #include <openssl/pkcs12.h> | 62 | #include <openssl/pkcs12.h> |
63 | 63 | ||
64 | #include "pkcs12_local.h" | ||
65 | |||
64 | /* Pack an object into an OCTET STRING and turn into a safebag */ | 66 | /* Pack an object into an OCTET STRING and turn into a safebag */ |
65 | 67 | ||
66 | PKCS12_SAFEBAG * | 68 | PKCS12_SAFEBAG * |
diff --git a/src/lib/libcrypto/pkcs12/p12_asn.c b/src/lib/libcrypto/pkcs12/p12_asn.c index 5103e093ee..f8239eac62 100644 --- a/src/lib/libcrypto/pkcs12/p12_asn.c +++ b/src/lib/libcrypto/pkcs12/p12_asn.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p12_asn.c,v 1.11 2022/07/24 18:48:04 tb Exp $ */ | 1 | /* $OpenBSD: p12_asn.c,v 1.12 2022/08/20 09:16:18 tb 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -61,6 +61,8 @@ | |||
61 | #include <openssl/asn1t.h> | 61 | #include <openssl/asn1t.h> |
62 | #include <openssl/pkcs12.h> | 62 | #include <openssl/pkcs12.h> |
63 | 63 | ||
64 | #include "pkcs12_local.h" | ||
65 | |||
64 | /* PKCS#12 ASN1 module */ | 66 | /* PKCS#12 ASN1 module */ |
65 | 67 | ||
66 | static const ASN1_TEMPLATE PKCS12_seq_tt[] = { | 68 | static const ASN1_TEMPLATE PKCS12_seq_tt[] = { |
diff --git a/src/lib/libcrypto/pkcs12/p12_attr.c b/src/lib/libcrypto/pkcs12/p12_attr.c index 01a7a3ea8c..989a1476c2 100644 --- a/src/lib/libcrypto/pkcs12/p12_attr.c +++ b/src/lib/libcrypto/pkcs12/p12_attr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p12_attr.c,v 1.16 2022/08/03 20:16:06 tb Exp $ */ | 1 | /* $OpenBSD: p12_attr.c,v 1.17 2022/08/20 09:16:18 tb 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -60,6 +60,7 @@ | |||
60 | 60 | ||
61 | #include <openssl/pkcs12.h> | 61 | #include <openssl/pkcs12.h> |
62 | 62 | ||
63 | #include "pkcs12_local.h" | ||
63 | #include "x509_lcl.h" | 64 | #include "x509_lcl.h" |
64 | 65 | ||
65 | /* Add a local keyid to a safebag */ | 66 | /* Add a local keyid to a safebag */ |
diff --git a/src/lib/libcrypto/pkcs12/p12_crt.c b/src/lib/libcrypto/pkcs12/p12_crt.c index dbcfd25478..794b749fb8 100644 --- a/src/lib/libcrypto/pkcs12/p12_crt.c +++ b/src/lib/libcrypto/pkcs12/p12_crt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p12_crt.c,v 1.19 2022/08/03 20:16:06 tb Exp $ */ | 1 | /* $OpenBSD: p12_crt.c,v 1.20 2022/08/20 09:16:18 tb 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. | 3 | * project. |
4 | */ | 4 | */ |
@@ -61,6 +61,8 @@ | |||
61 | #include <openssl/err.h> | 61 | #include <openssl/err.h> |
62 | #include <openssl/pkcs12.h> | 62 | #include <openssl/pkcs12.h> |
63 | 63 | ||
64 | #include "pkcs12_local.h" | ||
65 | |||
64 | static int pkcs12_add_bag(STACK_OF(PKCS12_SAFEBAG) **pbags, | 66 | static int pkcs12_add_bag(STACK_OF(PKCS12_SAFEBAG) **pbags, |
65 | PKCS12_SAFEBAG *bag); | 67 | PKCS12_SAFEBAG *bag); |
66 | 68 | ||
diff --git a/src/lib/libcrypto/pkcs12/p12_init.c b/src/lib/libcrypto/pkcs12/p12_init.c index 13dbe3664a..e305bde13a 100644 --- a/src/lib/libcrypto/pkcs12/p12_init.c +++ b/src/lib/libcrypto/pkcs12/p12_init.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p12_init.c,v 1.13 2022/01/20 11:18:49 inoguchi Exp $ */ | 1 | /* $OpenBSD: p12_init.c,v 1.14 2022/08/20 09:16:18 tb 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -61,6 +61,8 @@ | |||
61 | #include <openssl/err.h> | 61 | #include <openssl/err.h> |
62 | #include <openssl/pkcs12.h> | 62 | #include <openssl/pkcs12.h> |
63 | 63 | ||
64 | #include "pkcs12_local.h" | ||
65 | |||
64 | /* Initialise a PKCS12 structure to take data */ | 66 | /* Initialise a PKCS12 structure to take data */ |
65 | 67 | ||
66 | PKCS12 * | 68 | PKCS12 * |
diff --git a/src/lib/libcrypto/pkcs12/p12_kiss.c b/src/lib/libcrypto/pkcs12/p12_kiss.c index 42a84a5458..f755185644 100644 --- a/src/lib/libcrypto/pkcs12/p12_kiss.c +++ b/src/lib/libcrypto/pkcs12/p12_kiss.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p12_kiss.c,v 1.24 2022/08/03 20:16:06 tb Exp $ */ | 1 | /* $OpenBSD: p12_kiss.c,v 1.25 2022/08/20 09:16:18 tb 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -61,6 +61,8 @@ | |||
61 | #include <openssl/err.h> | 61 | #include <openssl/err.h> |
62 | #include <openssl/pkcs12.h> | 62 | #include <openssl/pkcs12.h> |
63 | 63 | ||
64 | #include "pkcs12_local.h" | ||
65 | |||
64 | /* Simplified PKCS#12 routines */ | 66 | /* Simplified PKCS#12 routines */ |
65 | 67 | ||
66 | static int parse_pk12( PKCS12 *p12, const char *pass, int passlen, | 68 | static int parse_pk12( PKCS12 *p12, const char *pass, int passlen, |
diff --git a/src/lib/libcrypto/pkcs12/p12_mutl.c b/src/lib/libcrypto/pkcs12/p12_mutl.c index 5c9cea90db..b1aafe9b8e 100644 --- a/src/lib/libcrypto/pkcs12/p12_mutl.c +++ b/src/lib/libcrypto/pkcs12/p12_mutl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p12_mutl.c,v 1.31 2022/08/03 20:16:06 tb Exp $ */ | 1 | /* $OpenBSD: p12_mutl.c,v 1.32 2022/08/20 09:16:18 tb 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -70,6 +70,7 @@ | |||
70 | 70 | ||
71 | #include "evp_locl.h" | 71 | #include "evp_locl.h" |
72 | #include "hmac_local.h" | 72 | #include "hmac_local.h" |
73 | #include "pkcs12_local.h" | ||
73 | #include "x509_lcl.h" | 74 | #include "x509_lcl.h" |
74 | 75 | ||
75 | int | 76 | int |
diff --git a/src/lib/libcrypto/pkcs12/p12_npas.c b/src/lib/libcrypto/pkcs12/p12_npas.c index 62ec368af7..7141e3ce88 100644 --- a/src/lib/libcrypto/pkcs12/p12_npas.c +++ b/src/lib/libcrypto/pkcs12/p12_npas.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p12_npas.c,v 1.14 2021/11/01 20:53:08 tb Exp $ */ | 1 | /* $OpenBSD: p12_npas.c,v 1.15 2022/08/20 09:16:18 tb 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -63,6 +63,7 @@ | |||
63 | #include <openssl/err.h> | 63 | #include <openssl/err.h> |
64 | #include <openssl/pkcs12.h> | 64 | #include <openssl/pkcs12.h> |
65 | 65 | ||
66 | #include "pkcs12_local.h" | ||
66 | #include "x509_lcl.h" | 67 | #include "x509_lcl.h" |
67 | 68 | ||
68 | /* PKCS#12 password change routine */ | 69 | /* PKCS#12 password change routine */ |
diff --git a/src/lib/libcrypto/pkcs12/p12_sbag.c b/src/lib/libcrypto/pkcs12/p12_sbag.c index 4e9f7ed3dd..cbcb02d23c 100644 --- a/src/lib/libcrypto/pkcs12/p12_sbag.c +++ b/src/lib/libcrypto/pkcs12/p12_sbag.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p12_sbag.c,v 1.4 2022/08/03 20:16:06 tb Exp $ */ | 1 | /* $OpenBSD: p12_sbag.c,v 1.5 2022/08/20 09:16:18 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project |
4 | * 1999-2018. | 4 | * 1999-2018. |
@@ -62,6 +62,7 @@ | |||
62 | #include <openssl/err.h> | 62 | #include <openssl/err.h> |
63 | #include <openssl/pkcs12.h> | 63 | #include <openssl/pkcs12.h> |
64 | 64 | ||
65 | #include "pkcs12_local.h" | ||
65 | #include "x509_lcl.h" | 66 | #include "x509_lcl.h" |
66 | 67 | ||
67 | const ASN1_TYPE * | 68 | const ASN1_TYPE * |
diff --git a/src/lib/libcrypto/pkcs12/p12_utl.c b/src/lib/libcrypto/pkcs12/p12_utl.c index 8efe7a2653..5c15720e21 100644 --- a/src/lib/libcrypto/pkcs12/p12_utl.c +++ b/src/lib/libcrypto/pkcs12/p12_utl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p12_utl.c,v 1.17 2022/08/03 20:16:06 tb Exp $ */ | 1 | /* $OpenBSD: p12_utl.c,v 1.18 2022/08/20 09:16:18 tb 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -62,6 +62,8 @@ | |||
62 | 62 | ||
63 | #include <openssl/pkcs12.h> | 63 | #include <openssl/pkcs12.h> |
64 | 64 | ||
65 | #include "pkcs12_local.h" | ||
66 | |||
65 | /* Cheap and nasty Unicode stuff */ | 67 | /* Cheap and nasty Unicode stuff */ |
66 | 68 | ||
67 | unsigned char * | 69 | unsigned char * |
diff --git a/src/lib/libcrypto/pkcs12/pkcs12_local.h b/src/lib/libcrypto/pkcs12/pkcs12_local.h new file mode 100644 index 0000000000..c5a0de36c9 --- /dev/null +++ b/src/lib/libcrypto/pkcs12/pkcs12_local.h | |||
@@ -0,0 +1,66 @@ | |||
1 | /* $OpenBSD: pkcs12_local.h,v 1.1 2022/08/20 09:16:18 tb Exp $ */ | ||
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | ||
3 | * project 1999. | ||
4 | */ | ||
5 | /* ==================================================================== | ||
6 | * Copyright (c) 1999 The OpenSSL Project. All rights reserved. | ||
7 | * | ||
8 | * Redistribution and use in source and binary forms, with or without | ||
9 | * modification, are permitted provided that the following conditions | ||
10 | * are met: | ||
11 | * | ||
12 | * 1. Redistributions of source code must retain the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer. | ||
14 | * | ||
15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
16 | * notice, this list of conditions and the following disclaimer in | ||
17 | * the documentation and/or other materials provided with the | ||
18 | * distribution. | ||
19 | * | ||
20 | * 3. All advertising materials mentioning features or use of this | ||
21 | * software must display the following acknowledgment: | ||
22 | * "This product includes software developed by the OpenSSL Project | ||
23 | * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" | ||
24 | * | ||
25 | * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to | ||
26 | * endorse or promote products derived from this software without | ||
27 | * prior written permission. For written permission, please contact | ||
28 | * licensing@OpenSSL.org. | ||
29 | * | ||
30 | * 5. Products derived from this software may not be called "OpenSSL" | ||
31 | * nor may "OpenSSL" appear in their names without prior written | ||
32 | * permission of the OpenSSL Project. | ||
33 | * | ||
34 | * 6. Redistributions of any form whatsoever must retain the following | ||
35 | * acknowledgment: | ||
36 | * "This product includes software developed by the OpenSSL Project | ||
37 | * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" | ||
38 | * | ||
39 | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | ||
40 | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
41 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
42 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR | ||
43 | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
44 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
45 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
46 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
47 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
48 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
49 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
50 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
51 | * ==================================================================== | ||
52 | * | ||
53 | * This product includes cryptographic software written by Eric Young | ||
54 | * (eay@cryptsoft.com). This product includes software written by Tim | ||
55 | * Hudson (tjh@cryptsoft.com). | ||
56 | * | ||
57 | */ | ||
58 | |||
59 | #ifndef HEADER_PKCS12_LOCAL_H | ||
60 | #define HEADER_PKCS12_LOCAL_H | ||
61 | |||
62 | __BEGIN_HIDDEN_DECLS | ||
63 | |||
64 | __END_HIDDEN_DECLS | ||
65 | |||
66 | #endif /* HEADER_PKCS12_LOCAL_H */ | ||