diff options
-rw-r--r-- | src/lib/libcrypto/Makefile | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/pem/pvkfmt.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_chk.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_crpt.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_eay.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_gen.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_lib.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_meth.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_pss.c | 3 |
9 files changed, 19 insertions, 9 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile index 7e7fff3175..0e833733e1 100644 --- a/src/lib/libcrypto/Makefile +++ b/src/lib/libcrypto/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.67 2022/01/07 09:45:52 tb Exp $ | 1 | # $OpenBSD: Makefile,v 1.68 2022/01/07 09:55:31 tb Exp $ |
2 | 2 | ||
3 | LIB= crypto | 3 | LIB= crypto |
4 | LIBREBUILD=y | 4 | LIBREBUILD=y |
@@ -41,6 +41,7 @@ CFLAGS+= -I${LCRYPTO_SRC}/evp | |||
41 | CFLAGS+= -I${LCRYPTO_SRC}/hmac | 41 | CFLAGS+= -I${LCRYPTO_SRC}/hmac |
42 | CFLAGS+= -I${LCRYPTO_SRC}/modes | 42 | CFLAGS+= -I${LCRYPTO_SRC}/modes |
43 | CFLAGS+= -I${LCRYPTO_SRC}/ocsp | 43 | CFLAGS+= -I${LCRYPTO_SRC}/ocsp |
44 | CFLAGS+= -I${LCRYPTO_SRC}/rsa | ||
44 | CFLAGS+= -I${LCRYPTO_SRC}/x509 | 45 | CFLAGS+= -I${LCRYPTO_SRC}/x509 |
45 | 46 | ||
46 | VERSION_SCRIPT= Symbols.map | 47 | VERSION_SCRIPT= Symbols.map |
diff --git a/src/lib/libcrypto/pem/pvkfmt.c b/src/lib/libcrypto/pem/pvkfmt.c index 7437eeba61..dffe1a362c 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.24 2022/01/07 09:35:36 tb Exp $ */ | 1 | /* $OpenBSD: pvkfmt.c,v 1.25 2022/01/07 09:55:31 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 | */ |
@@ -76,6 +76,7 @@ | |||
76 | #include "bn_lcl.h" | 76 | #include "bn_lcl.h" |
77 | #include "dsa_locl.h" | 77 | #include "dsa_locl.h" |
78 | #include "evp_locl.h" | 78 | #include "evp_locl.h" |
79 | #include "rsa_locl.h" | ||
79 | 80 | ||
80 | /* Utility function: read a DWORD (4 byte unsigned integer) in little endian | 81 | /* Utility function: read a DWORD (4 byte unsigned integer) in little endian |
81 | * format | 82 | * format |
diff --git a/src/lib/libcrypto/rsa/rsa_chk.c b/src/lib/libcrypto/rsa/rsa_chk.c index 5345d31df9..337728d61e 100644 --- a/src/lib/libcrypto/rsa/rsa_chk.c +++ b/src/lib/libcrypto/rsa/rsa_chk.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_chk.c,v 1.13 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: rsa_chk.c,v 1.14 2022/01/07 09:55:32 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1999 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -53,6 +53,7 @@ | |||
53 | #include <openssl/rsa.h> | 53 | #include <openssl/rsa.h> |
54 | 54 | ||
55 | #include "bn_lcl.h" | 55 | #include "bn_lcl.h" |
56 | #include "rsa_locl.h" | ||
56 | 57 | ||
57 | int | 58 | int |
58 | RSA_check_key(const RSA *key) | 59 | RSA_check_key(const RSA *key) |
diff --git a/src/lib/libcrypto/rsa/rsa_crpt.c b/src/lib/libcrypto/rsa/rsa_crpt.c index a646ded4a7..4fd21cd748 100644 --- a/src/lib/libcrypto/rsa/rsa_crpt.c +++ b/src/lib/libcrypto/rsa/rsa_crpt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_crpt.c,v 1.19 2018/02/18 12:52:13 tb Exp $ */ | 1 | /* $OpenBSD: rsa_crpt.c,v 1.20 2022/01/07 09:55: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 | * |
@@ -67,6 +67,7 @@ | |||
67 | #include <openssl/rsa.h> | 67 | #include <openssl/rsa.h> |
68 | 68 | ||
69 | #include "bn_lcl.h" | 69 | #include "bn_lcl.h" |
70 | #include "rsa_locl.h" | ||
70 | 71 | ||
71 | #ifndef OPENSSL_NO_ENGINE | 72 | #ifndef OPENSSL_NO_ENGINE |
72 | #include <openssl/engine.h> | 73 | #include <openssl/engine.h> |
diff --git a/src/lib/libcrypto/rsa/rsa_eay.c b/src/lib/libcrypto/rsa/rsa_eay.c index e9fc67349b..a45cad0d0a 100644 --- a/src/lib/libcrypto/rsa/rsa_eay.c +++ b/src/lib/libcrypto/rsa/rsa_eay.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_eay.c,v 1.52 2021/12/26 15:16:50 tb Exp $ */ | 1 | /* $OpenBSD: rsa_eay.c,v 1.53 2022/01/07 09:55: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 | * |
@@ -119,6 +119,7 @@ | |||
119 | #include <openssl/rsa.h> | 119 | #include <openssl/rsa.h> |
120 | 120 | ||
121 | #include "bn_lcl.h" | 121 | #include "bn_lcl.h" |
122 | #include "rsa_locl.h" | ||
122 | 123 | ||
123 | static int RSA_eay_public_encrypt(int flen, const unsigned char *from, | 124 | static int RSA_eay_public_encrypt(int flen, const unsigned char *from, |
124 | unsigned char *to, RSA *rsa, int padding); | 125 | unsigned char *to, RSA *rsa, int padding); |
diff --git a/src/lib/libcrypto/rsa/rsa_gen.c b/src/lib/libcrypto/rsa/rsa_gen.c index 1c37d8ef21..3a0d8837b4 100644 --- a/src/lib/libcrypto/rsa/rsa_gen.c +++ b/src/lib/libcrypto/rsa/rsa_gen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_gen.c,v 1.23 2021/12/26 15:16:50 tb Exp $ */ | 1 | /* $OpenBSD: rsa_gen.c,v 1.24 2022/01/07 09:55: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 | * |
@@ -70,6 +70,7 @@ | |||
70 | #include <openssl/rsa.h> | 70 | #include <openssl/rsa.h> |
71 | 71 | ||
72 | #include "bn_lcl.h" | 72 | #include "bn_lcl.h" |
73 | #include "rsa_locl.h" | ||
73 | 74 | ||
74 | static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb); | 75 | static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb); |
75 | 76 | ||
diff --git a/src/lib/libcrypto/rsa/rsa_lib.c b/src/lib/libcrypto/rsa/rsa_lib.c index 92b2f32d61..ddf3f1ba75 100644 --- a/src/lib/libcrypto/rsa/rsa_lib.c +++ b/src/lib/libcrypto/rsa/rsa_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_lib.c,v 1.41 2022/01/05 20:44:12 tb Exp $ */ | 1 | /* $OpenBSD: rsa_lib.c,v 1.42 2022/01/07 09:55: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 | * |
@@ -68,6 +68,7 @@ | |||
68 | #include <openssl/rsa.h> | 68 | #include <openssl/rsa.h> |
69 | 69 | ||
70 | #include "evp_locl.h" | 70 | #include "evp_locl.h" |
71 | #include "rsa_locl.h" | ||
71 | 72 | ||
72 | #ifndef OPENSSL_NO_ENGINE | 73 | #ifndef OPENSSL_NO_ENGINE |
73 | #include <openssl/engine.h> | 74 | #include <openssl/engine.h> |
diff --git a/src/lib/libcrypto/rsa/rsa_meth.c b/src/lib/libcrypto/rsa/rsa_meth.c index 095368b0cf..8ae929dc3d 100644 --- a/src/lib/libcrypto/rsa/rsa_meth.c +++ b/src/lib/libcrypto/rsa/rsa_meth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_meth.c,v 1.3 2019/06/05 15:41:33 gilles Exp $ */ | 1 | /* $OpenBSD: rsa_meth.c,v 1.4 2022/01/07 09:55:32 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/err.h> | 21 | #include <openssl/err.h> |
22 | #include <openssl/rsa.h> | 22 | #include <openssl/rsa.h> |
23 | 23 | ||
24 | #include "rsa_locl.h" | ||
25 | |||
24 | RSA_METHOD * | 26 | RSA_METHOD * |
25 | RSA_meth_new(const char *name, int flags) | 27 | RSA_meth_new(const char *name, int flags) |
26 | { | 28 | { |
diff --git a/src/lib/libcrypto/rsa/rsa_pss.c b/src/lib/libcrypto/rsa/rsa_pss.c index 85ce762643..cce38efa91 100644 --- a/src/lib/libcrypto/rsa/rsa_pss.c +++ b/src/lib/libcrypto/rsa/rsa_pss.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_pss.c,v 1.14 2021/12/12 21:30:14 tb Exp $ */ | 1 | /* $OpenBSD: rsa_pss.c,v 1.15 2022/01/07 09:55: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 2005. | 3 | * project 2005. |
4 | */ | 4 | */ |
@@ -67,6 +67,7 @@ | |||
67 | #include <openssl/sha.h> | 67 | #include <openssl/sha.h> |
68 | 68 | ||
69 | #include "evp_locl.h" | 69 | #include "evp_locl.h" |
70 | #include "rsa_locl.h" | ||
70 | 71 | ||
71 | static const unsigned char zeroes[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; | 72 | static const unsigned char zeroes[] = { 0, 0, 0, 0, 0, 0, 0, 0 }; |
72 | 73 | ||