diff options
-rw-r--r-- | src/lib/libcrypto/Makefile | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_ameth.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_asn1.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_key.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_lib.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_meth.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_ossl.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_sign.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_vrf.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pvkfmt.c | 3 |
10 files changed, 25 insertions, 10 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile index ed98dcc134..71e16cc2b0 100644 --- a/src/lib/libcrypto/Makefile +++ b/src/lib/libcrypto/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.65 2022/01/07 09:27:13 tb Exp $ | 1 | # $OpenBSD: Makefile,v 1.66 2022/01/07 09:35:36 tb Exp $ |
2 | 2 | ||
3 | LIB= crypto | 3 | LIB= crypto |
4 | LIBREBUILD=y | 4 | LIBREBUILD=y |
@@ -33,6 +33,7 @@ CFLAGS+= -I${LCRYPTO_SRC}/bio | |||
33 | CFLAGS+= -I${LCRYPTO_SRC}/bn | 33 | CFLAGS+= -I${LCRYPTO_SRC}/bn |
34 | CFLAGS+= -I${LCRYPTO_SRC}/bytestring | 34 | CFLAGS+= -I${LCRYPTO_SRC}/bytestring |
35 | CFLAGS+= -I${LCRYPTO_SRC}/dh | 35 | CFLAGS+= -I${LCRYPTO_SRC}/dh |
36 | CFLAGS+= -I${LCRYPTO_SRC}/dsa | ||
36 | CFLAGS+= -I${LCRYPTO_SRC}/ec | 37 | CFLAGS+= -I${LCRYPTO_SRC}/ec |
37 | CFLAGS+= -I${LCRYPTO_SRC}/ecdh | 38 | CFLAGS+= -I${LCRYPTO_SRC}/ecdh |
38 | CFLAGS+= -I${LCRYPTO_SRC}/ecdsa | 39 | CFLAGS+= -I${LCRYPTO_SRC}/ecdsa |
diff --git a/src/lib/libcrypto/dsa/dsa_ameth.c b/src/lib/libcrypto/dsa/dsa_ameth.c index af9ebaddde..3c7644d251 100644 --- a/src/lib/libcrypto/dsa/dsa_ameth.c +++ b/src/lib/libcrypto/dsa/dsa_ameth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa_ameth.c,v 1.29 2021/12/12 21:30:13 tb Exp $ */ | 1 | /* $OpenBSD: dsa_ameth.c,v 1.30 2022/01/07 09:35:36 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 | */ |
@@ -69,6 +69,7 @@ | |||
69 | 69 | ||
70 | #include "asn1_locl.h" | 70 | #include "asn1_locl.h" |
71 | #include "bn_lcl.h" | 71 | #include "bn_lcl.h" |
72 | #include "dsa_locl.h" | ||
72 | #include "evp_locl.h" | 73 | #include "evp_locl.h" |
73 | 74 | ||
74 | static int | 75 | static int |
diff --git a/src/lib/libcrypto/dsa/dsa_asn1.c b/src/lib/libcrypto/dsa/dsa_asn1.c index 23f08bb1f9..3bf044665f 100644 --- a/src/lib/libcrypto/dsa/dsa_asn1.c +++ b/src/lib/libcrypto/dsa/dsa_asn1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa_asn1.c,v 1.22 2018/06/14 17:03:19 jsing Exp $ */ | 1 | /* $OpenBSD: dsa_asn1.c,v 1.23 2022/01/07 09:35:36 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 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -64,6 +64,8 @@ | |||
64 | #include <openssl/dsa.h> | 64 | #include <openssl/dsa.h> |
65 | #include <openssl/err.h> | 65 | #include <openssl/err.h> |
66 | 66 | ||
67 | #include "dsa_locl.h" | ||
68 | |||
67 | /* Override the default new methods */ | 69 | /* Override the default new methods */ |
68 | static int | 70 | static int |
69 | sig_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) | 71 | sig_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg) |
diff --git a/src/lib/libcrypto/dsa/dsa_key.c b/src/lib/libcrypto/dsa/dsa_key.c index a0487e98b8..a5053ec29a 100644 --- a/src/lib/libcrypto/dsa/dsa_key.c +++ b/src/lib/libcrypto/dsa/dsa_key.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa_key.c,v 1.29 2018/11/09 23:45:19 tb Exp $ */ | 1 | /* $OpenBSD: dsa_key.c,v 1.30 2022/01/07 09:35:36 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 | * |
@@ -65,7 +65,9 @@ | |||
65 | 65 | ||
66 | #include <openssl/bn.h> | 66 | #include <openssl/bn.h> |
67 | #include <openssl/dsa.h> | 67 | #include <openssl/dsa.h> |
68 | |||
68 | #include "bn_lcl.h" | 69 | #include "bn_lcl.h" |
70 | #include "dsa_locl.h" | ||
69 | 71 | ||
70 | static int dsa_builtin_keygen(DSA *dsa); | 72 | static int dsa_builtin_keygen(DSA *dsa); |
71 | 73 | ||
diff --git a/src/lib/libcrypto/dsa/dsa_lib.c b/src/lib/libcrypto/dsa/dsa_lib.c index e910e340a9..7a7986b1f7 100644 --- a/src/lib/libcrypto/dsa/dsa_lib.c +++ b/src/lib/libcrypto/dsa/dsa_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa_lib.c,v 1.32 2022/01/07 09:27:13 tb Exp $ */ | 1 | /* $OpenBSD: dsa_lib.c,v 1.33 2022/01/07 09:35:36 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 | * |
@@ -75,6 +75,7 @@ | |||
75 | #endif | 75 | #endif |
76 | 76 | ||
77 | #include "dh_local.h" | 77 | #include "dh_local.h" |
78 | #include "dsa_locl.h" | ||
78 | 79 | ||
79 | static const DSA_METHOD *default_DSA_method = NULL; | 80 | static const DSA_METHOD *default_DSA_method = NULL; |
80 | 81 | ||
diff --git a/src/lib/libcrypto/dsa/dsa_meth.c b/src/lib/libcrypto/dsa/dsa_meth.c index e6f043f830..f8ed0352a0 100644 --- a/src/lib/libcrypto/dsa/dsa_meth.c +++ b/src/lib/libcrypto/dsa/dsa_meth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa_meth.c,v 1.1 2018/03/17 15:19:12 tb Exp $ */ | 1 | /* $OpenBSD: dsa_meth.c,v 1.2 2022/01/07 09:35:36 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
4 | * | 4 | * |
@@ -21,6 +21,8 @@ | |||
21 | #include <openssl/dsa.h> | 21 | #include <openssl/dsa.h> |
22 | #include <openssl/err.h> | 22 | #include <openssl/err.h> |
23 | 23 | ||
24 | #include "dsa_locl.h" | ||
25 | |||
24 | DSA_METHOD * | 26 | DSA_METHOD * |
25 | DSA_meth_new(const char *name, int flags) | 27 | DSA_meth_new(const char *name, int flags) |
26 | { | 28 | { |
diff --git a/src/lib/libcrypto/dsa/dsa_ossl.c b/src/lib/libcrypto/dsa/dsa_ossl.c index ecf2662467..ec11a08b5c 100644 --- a/src/lib/libcrypto/dsa/dsa_ossl.c +++ b/src/lib/libcrypto/dsa/dsa_ossl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa_ossl.c,v 1.42 2019/06/04 18:12:26 tb Exp $ */ | 1 | /* $OpenBSD: dsa_ossl.c,v 1.43 2022/01/07 09:35:36 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 | * |
@@ -67,6 +67,7 @@ | |||
67 | #include <openssl/sha.h> | 67 | #include <openssl/sha.h> |
68 | 68 | ||
69 | #include "bn_lcl.h" | 69 | #include "bn_lcl.h" |
70 | #include "dsa_locl.h" | ||
70 | 71 | ||
71 | static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); | 72 | static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); |
72 | static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, | 73 | static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, |
diff --git a/src/lib/libcrypto/dsa/dsa_sign.c b/src/lib/libcrypto/dsa/dsa_sign.c index 0f55ea1868..b1fc1dbb49 100644 --- a/src/lib/libcrypto/dsa/dsa_sign.c +++ b/src/lib/libcrypto/dsa/dsa_sign.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa_sign.c,v 1.20 2018/06/14 17:01:49 jsing Exp $ */ | 1 | /* $OpenBSD: dsa_sign.c,v 1.21 2022/01/07 09:35:36 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 | * |
@@ -61,6 +61,8 @@ | |||
61 | #include <openssl/bn.h> | 61 | #include <openssl/bn.h> |
62 | #include <openssl/dsa.h> | 62 | #include <openssl/dsa.h> |
63 | 63 | ||
64 | #include "dsa_locl.h" | ||
65 | |||
64 | DSA_SIG * | 66 | DSA_SIG * |
65 | DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) | 67 | DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) |
66 | { | 68 | { |
diff --git a/src/lib/libcrypto/dsa/dsa_vrf.c b/src/lib/libcrypto/dsa/dsa_vrf.c index 1965338f1f..38f8450e72 100644 --- a/src/lib/libcrypto/dsa/dsa_vrf.c +++ b/src/lib/libcrypto/dsa/dsa_vrf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dsa_vrf.c,v 1.16 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: dsa_vrf.c,v 1.17 2022/01/07 09:35:36 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 | * |
@@ -60,6 +60,8 @@ | |||
60 | 60 | ||
61 | #include <openssl/dsa.h> | 61 | #include <openssl/dsa.h> |
62 | 62 | ||
63 | #include "dsa_locl.h" | ||
64 | |||
63 | int | 65 | int |
64 | DSA_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig, DSA *dsa) | 66 | DSA_do_verify(const unsigned char *dgst, int dgst_len, DSA_SIG *sig, DSA *dsa) |
65 | { | 67 | { |
diff --git a/src/lib/libcrypto/pem/pvkfmt.c b/src/lib/libcrypto/pem/pvkfmt.c index 9d758ab289..7437eeba61 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.23 2021/12/12 21:30:14 tb Exp $ */ | 1 | /* $OpenBSD: pvkfmt.c,v 1.24 2022/01/07 09:35:36 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 2005. | 3 | * project 2005. |
4 | */ | 4 | */ |
@@ -74,6 +74,7 @@ | |||
74 | #include <openssl/rsa.h> | 74 | #include <openssl/rsa.h> |
75 | 75 | ||
76 | #include "bn_lcl.h" | 76 | #include "bn_lcl.h" |
77 | #include "dsa_locl.h" | ||
77 | #include "evp_locl.h" | 78 | #include "evp_locl.h" |
78 | 79 | ||
79 | /* Utility function: read a DWORD (4 byte unsigned integer) in little endian | 80 | /* Utility function: read a DWORD (4 byte unsigned integer) in little endian |