diff options
author | tb <> | 2021-12-04 16:08:32 +0000 |
---|---|---|
committer | tb <> | 2021-12-04 16:08:32 +0000 |
commit | a75a07c9d53bf7f5f7c73650fec4ba578b806405 (patch) | |
tree | f715863d54b5b53f8b08263f59e57f439ae0b14b | |
parent | 76931b287b8254b40aa7ca868c21aaada115121e (diff) | |
download | openbsd-a75a07c9d53bf7f5f7c73650fec4ba578b806405.tar.gz openbsd-a75a07c9d53bf7f5f7c73650fec4ba578b806405.tar.bz2 openbsd-a75a07c9d53bf7f5f7c73650fec4ba578b806405.zip |
Add #include "bn_lcl.h" to the files that will soon need it.
ok inoguchi jsing
-rw-r--r-- | src/lib/libcrypto/asn1/t_pkey.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/dh/dh_depr.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/dh/dh_pmeth.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_depr.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_pmeth.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/ec/ec_kmeth.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/ec/ec_lcl.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/ec/ec_pmeth.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/ecdh/ech_key.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/ecdsa/ecs_sign.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/ecdsa/ecs_vrf.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/evp/pmeth_gn.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_depr.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_pmeth.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/ts/ts_lib.c | 3 |
15 files changed, 36 insertions, 15 deletions
diff --git a/src/lib/libcrypto/asn1/t_pkey.c b/src/lib/libcrypto/asn1/t_pkey.c index b3f7d084c5..a307381231 100644 --- a/src/lib/libcrypto/asn1/t_pkey.c +++ b/src/lib/libcrypto/asn1/t_pkey.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: t_pkey.c,v 1.16 2014/07/11 08:44:47 jsing Exp $ */ | 1 | /* $OpenBSD: t_pkey.c,v 1.17 2021/12/04 16:08:32 tb 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,6 +62,8 @@ | |||
62 | #include <openssl/buffer.h> | 62 | #include <openssl/buffer.h> |
63 | #include <openssl/objects.h> | 63 | #include <openssl/objects.h> |
64 | 64 | ||
65 | #include "bn_lcl.h" | ||
66 | |||
65 | int | 67 | int |
66 | ASN1_bn_print(BIO *bp, const char *number, const BIGNUM *num, | 68 | ASN1_bn_print(BIO *bp, const char *number, const BIGNUM *num, |
67 | unsigned char *buf, int off) | 69 | unsigned char *buf, int off) |
diff --git a/src/lib/libcrypto/dh/dh_depr.c b/src/lib/libcrypto/dh/dh_depr.c index 0b75b0be5e..717482ca38 100644 --- a/src/lib/libcrypto/dh/dh_depr.c +++ b/src/lib/libcrypto/dh/dh_depr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dh_depr.c,v 1.6 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: dh_depr.c,v 1.7 2021/12/04 16:08:32 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -62,6 +62,8 @@ | |||
62 | #include <openssl/bn.h> | 62 | #include <openssl/bn.h> |
63 | #include <openssl/dh.h> | 63 | #include <openssl/dh.h> |
64 | 64 | ||
65 | #include "bn_lcl.h" | ||
66 | |||
65 | #ifndef OPENSSL_NO_DEPRECATED | 67 | #ifndef OPENSSL_NO_DEPRECATED |
66 | DH * | 68 | DH * |
67 | DH_generate_parameters(int prime_len, int generator, | 69 | DH_generate_parameters(int prime_len, int generator, |
diff --git a/src/lib/libcrypto/dh/dh_pmeth.c b/src/lib/libcrypto/dh/dh_pmeth.c index 24d16ff5d3..0dda6bb1f7 100644 --- a/src/lib/libcrypto/dh/dh_pmeth.c +++ b/src/lib/libcrypto/dh/dh_pmeth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dh_pmeth.c,v 1.10 2017/01/29 17:49:22 beck Exp $ */ | 1 | /* $OpenBSD: dh_pmeth.c,v 1.11 2021/12/04 16:08:32 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 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -67,6 +67,7 @@ | |||
67 | #include <openssl/evp.h> | 67 | #include <openssl/evp.h> |
68 | #include <openssl/x509.h> | 68 | #include <openssl/x509.h> |
69 | 69 | ||
70 | #include "bn_lcl.h" | ||
70 | #include "evp_locl.h" | 71 | #include "evp_locl.h" |
71 | 72 | ||
72 | /* DH pkey context structure */ | 73 | /* DH pkey context structure */ |
diff --git a/src/lib/libcrypto/dsa/dsa_depr.c b/src/lib/libcrypto/dsa/dsa_depr.c index 269cd63450..673e7000a0 100644 --- a/src/lib/libcrypto/dsa/dsa_depr.c +++ b/src/lib/libcrypto/dsa/dsa_depr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa_depr.c,v 1.7 2014/10/18 17:20:40 jsing Exp $ */ | 1 | /* $OpenBSD: dsa_depr.c,v 1.8 2021/12/04 16:08:32 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -68,6 +68,8 @@ | |||
68 | #include <openssl/evp.h> | 68 | #include <openssl/evp.h> |
69 | #include <openssl/sha.h> | 69 | #include <openssl/sha.h> |
70 | 70 | ||
71 | #include "bn_lcl.h" | ||
72 | |||
71 | #ifndef OPENSSL_NO_DEPRECATED | 73 | #ifndef OPENSSL_NO_DEPRECATED |
72 | DSA * | 74 | DSA * |
73 | DSA_generate_parameters(int bits, unsigned char *seed_in, int seed_len, | 75 | DSA_generate_parameters(int bits, unsigned char *seed_in, int seed_len, |
diff --git a/src/lib/libcrypto/dsa/dsa_pmeth.c b/src/lib/libcrypto/dsa/dsa_pmeth.c index dd0da348b6..ef89e2be33 100644 --- a/src/lib/libcrypto/dsa/dsa_pmeth.c +++ b/src/lib/libcrypto/dsa/dsa_pmeth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa_pmeth.c,v 1.12 2019/09/09 18:06:25 jsing Exp $ */ | 1 | /* $OpenBSD: dsa_pmeth.c,v 1.13 2021/12/04 16:08:32 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 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -66,6 +66,7 @@ | |||
66 | #include <openssl/evp.h> | 66 | #include <openssl/evp.h> |
67 | #include <openssl/x509.h> | 67 | #include <openssl/x509.h> |
68 | 68 | ||
69 | #include "bn_lcl.h" | ||
69 | #include "dsa_locl.h" | 70 | #include "dsa_locl.h" |
70 | #include "evp_locl.h" | 71 | #include "evp_locl.h" |
71 | 72 | ||
diff --git a/src/lib/libcrypto/ec/ec_kmeth.c b/src/lib/libcrypto/ec/ec_kmeth.c index 1fb9e57f32..4203dff2d0 100644 --- a/src/lib/libcrypto/ec/ec_kmeth.c +++ b/src/lib/libcrypto/ec/ec_kmeth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_kmeth.c,v 1.5 2019/05/10 19:15:06 bcook Exp $ */ | 1 | /* $OpenBSD: ec_kmeth.c,v 1.6 2021/12/04 16:08:32 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
4 | * project. | 4 | * project. |
@@ -58,6 +58,7 @@ | |||
58 | #endif | 58 | #endif |
59 | #include <openssl/err.h> | 59 | #include <openssl/err.h> |
60 | 60 | ||
61 | #include "bn_lcl.h" | ||
61 | #include "ec_lcl.h" | 62 | #include "ec_lcl.h" |
62 | #include "ecs_locl.h" | 63 | #include "ecs_locl.h" |
63 | 64 | ||
diff --git a/src/lib/libcrypto/ec/ec_lcl.h b/src/lib/libcrypto/ec/ec_lcl.h index ced04c7e31..7a7469968c 100644 --- a/src/lib/libcrypto/ec/ec_lcl.h +++ b/src/lib/libcrypto/ec/ec_lcl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_lcl.h,v 1.18 2021/09/08 17:29:21 tb Exp $ */ | 1 | /* $OpenBSD: ec_lcl.h,v 1.19 2021/12/04 16:08:32 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -76,6 +76,8 @@ | |||
76 | #include <openssl/ecdsa.h> | 76 | #include <openssl/ecdsa.h> |
77 | #include <openssl/bn.h> | 77 | #include <openssl/bn.h> |
78 | 78 | ||
79 | #include "bn_lcl.h" | ||
80 | |||
79 | __BEGIN_HIDDEN_DECLS | 81 | __BEGIN_HIDDEN_DECLS |
80 | 82 | ||
81 | #if defined(__SUNPRO_C) | 83 | #if defined(__SUNPRO_C) |
diff --git a/src/lib/libcrypto/ec/ec_pmeth.c b/src/lib/libcrypto/ec/ec_pmeth.c index c57d26ae29..63e6359251 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.12 2019/09/09 18:06:25 jsing Exp $ */ | 1 | /* $OpenBSD: ec_pmeth.c,v 1.13 2021/12/04 16:08:32 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 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -66,6 +66,7 @@ | |||
66 | #include <openssl/evp.h> | 66 | #include <openssl/evp.h> |
67 | #include <openssl/x509.h> | 67 | #include <openssl/x509.h> |
68 | 68 | ||
69 | #include "bn_lcl.h" | ||
69 | #include "ec_lcl.h" | 70 | #include "ec_lcl.h" |
70 | #include "ech_locl.h" | 71 | #include "ech_locl.h" |
71 | #include "evp_locl.h" | 72 | #include "evp_locl.h" |
diff --git a/src/lib/libcrypto/ecdh/ech_key.c b/src/lib/libcrypto/ecdh/ech_key.c index e59ce8bc3c..797cb01891 100644 --- a/src/lib/libcrypto/ecdh/ech_key.c +++ b/src/lib/libcrypto/ecdh/ech_key.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ech_key.c,v 1.11 2021/04/20 17:23:37 tb Exp $ */ | 1 | /* $OpenBSD: ech_key.c,v 1.12 2021/12/04 16:08:32 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. |
4 | * | 4 | * |
@@ -77,6 +77,7 @@ | |||
77 | #include <openssl/obj_mac.h> | 77 | #include <openssl/obj_mac.h> |
78 | #include <openssl/sha.h> | 78 | #include <openssl/sha.h> |
79 | 79 | ||
80 | #include "bn_lcl.h" | ||
80 | #include "ech_locl.h" | 81 | #include "ech_locl.h" |
81 | #include "ec_lcl.h" | 82 | #include "ec_lcl.h" |
82 | 83 | ||
diff --git a/src/lib/libcrypto/ecdsa/ecs_sign.c b/src/lib/libcrypto/ecdsa/ecs_sign.c index 5beb853b94..54c99638da 100644 --- a/src/lib/libcrypto/ecdsa/ecs_sign.c +++ b/src/lib/libcrypto/ecdsa/ecs_sign.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecs_sign.c,v 1.7 2019/01/19 01:07:00 tb Exp $ */ | 1 | /* $OpenBSD: ecs_sign.c,v 1.8 2021/12/04 16:08:32 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -59,6 +59,7 @@ | |||
59 | #include <openssl/engine.h> | 59 | #include <openssl/engine.h> |
60 | #endif | 60 | #endif |
61 | 61 | ||
62 | #include "bn_lcl.h" | ||
62 | #include "ecs_locl.h" | 63 | #include "ecs_locl.h" |
63 | #include "ec_lcl.h" | 64 | #include "ec_lcl.h" |
64 | 65 | ||
diff --git a/src/lib/libcrypto/ecdsa/ecs_vrf.c b/src/lib/libcrypto/ecdsa/ecs_vrf.c index 4c1bc85e06..def130cf5c 100644 --- a/src/lib/libcrypto/ecdsa/ecs_vrf.c +++ b/src/lib/libcrypto/ecdsa/ecs_vrf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecs_vrf.c,v 1.7 2019/01/19 01:12:48 tb Exp $ */ | 1 | /* $OpenBSD: ecs_vrf.c,v 1.8 2021/12/04 16:08:32 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project | 3 | * Written by Nils Larsch for the OpenSSL project |
4 | */ | 4 | */ |
@@ -58,8 +58,10 @@ | |||
58 | 58 | ||
59 | #include <openssl/opensslconf.h> | 59 | #include <openssl/opensslconf.h> |
60 | 60 | ||
61 | #include "bn_lcl.h" | ||
61 | #include "ecs_locl.h" | 62 | #include "ecs_locl.h" |
62 | #include "ec_lcl.h" | 63 | #include "ec_lcl.h" |
64 | |||
63 | #ifndef OPENSSL_NO_ENGINE | 65 | #ifndef OPENSSL_NO_ENGINE |
64 | #include <openssl/engine.h> | 66 | #include <openssl/engine.h> |
65 | #endif | 67 | #endif |
diff --git a/src/lib/libcrypto/evp/pmeth_gn.c b/src/lib/libcrypto/evp/pmeth_gn.c index 7f5311aff9..066291b800 100644 --- a/src/lib/libcrypto/evp/pmeth_gn.c +++ b/src/lib/libcrypto/evp/pmeth_gn.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pmeth_gn.c,v 1.7 2021/11/18 18:05:27 tb Exp $ */ | 1 | /* $OpenBSD: pmeth_gn.c,v 1.8 2021/12/04 16:08:32 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 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -64,6 +64,7 @@ | |||
64 | #include <openssl/evp.h> | 64 | #include <openssl/evp.h> |
65 | #include <openssl/objects.h> | 65 | #include <openssl/objects.h> |
66 | 66 | ||
67 | #include "bn_lcl.h" | ||
67 | #include "evp_locl.h" | 68 | #include "evp_locl.h" |
68 | 69 | ||
69 | int | 70 | int |
diff --git a/src/lib/libcrypto/rsa/rsa_depr.c b/src/lib/libcrypto/rsa/rsa_depr.c index b830a2293c..54a669ccc2 100644 --- a/src/lib/libcrypto/rsa/rsa_depr.c +++ b/src/lib/libcrypto/rsa/rsa_depr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_depr.c,v 1.8 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_depr.c,v 1.9 2021/12/04 16:08:32 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -64,6 +64,8 @@ | |||
64 | #include <openssl/bn.h> | 64 | #include <openssl/bn.h> |
65 | #include <openssl/rsa.h> | 65 | #include <openssl/rsa.h> |
66 | 66 | ||
67 | #include "bn_lcl.h" | ||
68 | |||
67 | #ifndef OPENSSL_NO_DEPRECATED | 69 | #ifndef OPENSSL_NO_DEPRECATED |
68 | 70 | ||
69 | RSA * | 71 | RSA * |
diff --git a/src/lib/libcrypto/rsa/rsa_pmeth.c b/src/lib/libcrypto/rsa/rsa_pmeth.c index 008d425bd1..36a2a27727 100644 --- a/src/lib/libcrypto/rsa/rsa_pmeth.c +++ b/src/lib/libcrypto/rsa/rsa_pmeth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_pmeth.c,v 1.32 2019/10/31 14:05:30 jsing Exp $ */ | 1 | /* $OpenBSD: rsa_pmeth.c,v 1.33 2021/12/04 16:08:32 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 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -70,6 +70,7 @@ | |||
70 | #include <openssl/x509.h> | 70 | #include <openssl/x509.h> |
71 | #include <openssl/x509v3.h> | 71 | #include <openssl/x509v3.h> |
72 | 72 | ||
73 | #include "bn_lcl.h" | ||
73 | #include "evp_locl.h" | 74 | #include "evp_locl.h" |
74 | #include "rsa_locl.h" | 75 | #include "rsa_locl.h" |
75 | 76 | ||
diff --git a/src/lib/libcrypto/ts/ts_lib.c b/src/lib/libcrypto/ts/ts_lib.c index cdfa9db351..b6d50a36fa 100644 --- a/src/lib/libcrypto/ts/ts_lib.c +++ b/src/lib/libcrypto/ts/ts_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ts_lib.c,v 1.11 2021/11/01 20:53:08 tb Exp $ */ | 1 | /* $OpenBSD: ts_lib.c,v 1.12 2021/12/04 16:08:32 tb Exp $ */ |
2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL | 2 | /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL |
3 | * project 2002. | 3 | * project 2002. |
4 | */ | 4 | */ |
@@ -64,6 +64,7 @@ | |||
64 | #include <openssl/ts.h> | 64 | #include <openssl/ts.h> |
65 | #include <openssl/x509v3.h> | 65 | #include <openssl/x509v3.h> |
66 | 66 | ||
67 | #include "bn_lcl.h" | ||
67 | #include "x509_lcl.h" | 68 | #include "x509_lcl.h" |
68 | 69 | ||
69 | /* Local function declarations. */ | 70 | /* Local function declarations. */ |