diff options
Diffstat (limited to 'src/lib/libcrypto/evp')
35 files changed, 104 insertions, 36 deletions
diff --git a/src/lib/libcrypto/evp/bio_b64.c b/src/lib/libcrypto/evp/bio_b64.c index 82aaa8bf7a..abe266b604 100644 --- a/src/lib/libcrypto/evp/bio_b64.c +++ b/src/lib/libcrypto/evp/bio_b64.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_b64.c,v 1.22 2018/08/24 19:47:25 tb Exp $ */ | 1 | /* $OpenBSD: bio_b64.c,v 1.23 2021/12/12 21:30:13 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 | * |
@@ -63,6 +63,8 @@ | |||
63 | #include <openssl/buffer.h> | 63 | #include <openssl/buffer.h> |
64 | #include <openssl/evp.h> | 64 | #include <openssl/evp.h> |
65 | 65 | ||
66 | #include "evp_locl.h" | ||
67 | |||
66 | static int b64_write(BIO *h, const char *buf, int num); | 68 | static int b64_write(BIO *h, const char *buf, int num); |
67 | static int b64_read(BIO *h, char *buf, int size); | 69 | static int b64_read(BIO *h, char *buf, int size); |
68 | static int b64_puts(BIO *h, const char *str); | 70 | static int b64_puts(BIO *h, const char *str); |
diff --git a/src/lib/libcrypto/evp/bio_enc.c b/src/lib/libcrypto/evp/bio_enc.c index 33f611d178..de9267a0d5 100644 --- a/src/lib/libcrypto/evp/bio_enc.c +++ b/src/lib/libcrypto/evp/bio_enc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_enc.c,v 1.23 2021/12/01 09:06:30 jsing Exp $ */ | 1 | /* $OpenBSD: bio_enc.c,v 1.24 2021/12/12 21:30:13 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 | * |
@@ -63,6 +63,8 @@ | |||
63 | #include <openssl/buffer.h> | 63 | #include <openssl/buffer.h> |
64 | #include <openssl/evp.h> | 64 | #include <openssl/evp.h> |
65 | 65 | ||
66 | #include "evp_locl.h" | ||
67 | |||
66 | static int enc_write(BIO *h, const char *buf, int num); | 68 | static int enc_write(BIO *h, const char *buf, int num); |
67 | static int enc_read(BIO *h, char *buf, int size); | 69 | static int enc_read(BIO *h, char *buf, int size); |
68 | /*static int enc_puts(BIO *h, const char *str); */ | 70 | /*static int enc_puts(BIO *h, const char *str); */ |
diff --git a/src/lib/libcrypto/evp/bio_md.c b/src/lib/libcrypto/evp/bio_md.c index 44f72185dc..e35510c17c 100644 --- a/src/lib/libcrypto/evp/bio_md.c +++ b/src/lib/libcrypto/evp/bio_md.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_md.c,v 1.15 2018/05/02 15:51:41 tb Exp $ */ | 1 | /* $OpenBSD: bio_md.c,v 1.16 2021/12/12 21:30:13 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/evp.h> | 63 | #include <openssl/evp.h> |
64 | 64 | ||
65 | #include "evp_locl.h" | ||
66 | |||
65 | /* BIO_put and BIO_get both add to the digest, | 67 | /* BIO_put and BIO_get both add to the digest, |
66 | * BIO_gets returns the digest */ | 68 | * BIO_gets returns the digest */ |
67 | 69 | ||
diff --git a/src/lib/libcrypto/evp/digest.c b/src/lib/libcrypto/evp/digest.c index 4cd3565c65..59c98b57b8 100644 --- a/src/lib/libcrypto/evp/digest.c +++ b/src/lib/libcrypto/evp/digest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: digest.c,v 1.31 2019/04/19 17:04:45 jsing Exp $ */ | 1 | /* $OpenBSD: digest.c,v 1.32 2021/12/12 21:30:13 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 | * |
@@ -122,6 +122,8 @@ | |||
122 | #include <openssl/engine.h> | 122 | #include <openssl/engine.h> |
123 | #endif | 123 | #endif |
124 | 124 | ||
125 | #include "evp_locl.h" | ||
126 | |||
125 | int | 127 | int |
126 | EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type) | 128 | EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type) |
127 | { | 129 | { |
diff --git a/src/lib/libcrypto/evp/e_aes_cbc_hmac_sha1.c b/src/lib/libcrypto/evp/e_aes_cbc_hmac_sha1.c index 9be17e36f2..eef9c28096 100644 --- a/src/lib/libcrypto/evp/e_aes_cbc_hmac_sha1.c +++ b/src/lib/libcrypto/evp/e_aes_cbc_hmac_sha1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: e_aes_cbc_hmac_sha1.c,v 1.15 2019/04/03 15:33:37 tb Exp $ */ | 1 | /* $OpenBSD: e_aes_cbc_hmac_sha1.c,v 1.16 2021/12/12 21:30:13 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 2011-2013 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2011-2013 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -59,8 +59,9 @@ | |||
59 | #include <openssl/objects.h> | 59 | #include <openssl/objects.h> |
60 | #include <openssl/aes.h> | 60 | #include <openssl/aes.h> |
61 | #include <openssl/sha.h> | 61 | #include <openssl/sha.h> |
62 | #include "evp_locl.h" | 62 | |
63 | #include "constant_time_locl.h" | 63 | #include "constant_time_locl.h" |
64 | #include "evp_locl.h" | ||
64 | 65 | ||
65 | #define TLS1_1_VERSION 0x0302 | 66 | #define TLS1_1_VERSION 0x0302 |
66 | 67 | ||
diff --git a/src/lib/libcrypto/evp/e_camellia.c b/src/lib/libcrypto/evp/e_camellia.c index fd12cf9c50..70dad7ead6 100644 --- a/src/lib/libcrypto/evp/e_camellia.c +++ b/src/lib/libcrypto/evp/e_camellia.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: e_camellia.c,v 1.8 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: e_camellia.c,v 1.9 2021/12/12 21:30:13 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 2006 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2006 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -61,6 +61,7 @@ | |||
61 | #include <openssl/evp.h> | 61 | #include <openssl/evp.h> |
62 | #include <openssl/err.h> | 62 | #include <openssl/err.h> |
63 | #include <openssl/camellia.h> | 63 | #include <openssl/camellia.h> |
64 | |||
64 | #include "evp_locl.h" | 65 | #include "evp_locl.h" |
65 | 66 | ||
66 | static int camellia_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, | 67 | static int camellia_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, |
diff --git a/src/lib/libcrypto/evp/e_gost2814789.c b/src/lib/libcrypto/evp/e_gost2814789.c index 730de4fed1..7803d9507b 100644 --- a/src/lib/libcrypto/evp/e_gost2814789.c +++ b/src/lib/libcrypto/evp/e_gost2814789.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: e_gost2814789.c,v 1.4 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: e_gost2814789.c,v 1.5 2021/12/12 21:30:13 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
@@ -48,6 +48,7 @@ | |||
48 | * OF THE POSSIBILITY OF SUCH DAMAGE. | 48 | * OF THE POSSIBILITY OF SUCH DAMAGE. |
49 | * ==================================================================== | 49 | * ==================================================================== |
50 | */ | 50 | */ |
51 | |||
51 | #include <string.h> | 52 | #include <string.h> |
52 | 53 | ||
53 | #include <openssl/opensslconf.h> | 54 | #include <openssl/opensslconf.h> |
@@ -56,6 +57,7 @@ | |||
56 | #include <openssl/evp.h> | 57 | #include <openssl/evp.h> |
57 | #include <openssl/err.h> | 58 | #include <openssl/err.h> |
58 | #include <openssl/gost.h> | 59 | #include <openssl/gost.h> |
60 | |||
59 | #include "evp_locl.h" | 61 | #include "evp_locl.h" |
60 | 62 | ||
61 | typedef struct { | 63 | typedef struct { |
diff --git a/src/lib/libcrypto/evp/e_null.c b/src/lib/libcrypto/evp/e_null.c index 65374cc3f5..db79e1ec5f 100644 --- a/src/lib/libcrypto/evp/e_null.c +++ b/src/lib/libcrypto/evp/e_null.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: e_null.c,v 1.14 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: e_null.c,v 1.15 2021/12/12 21:30:13 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/evp.h> | 62 | #include <openssl/evp.h> |
63 | #include <openssl/objects.h> | 63 | #include <openssl/objects.h> |
64 | 64 | ||
65 | #include "evp_locl.h" | ||
66 | |||
65 | static int null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, | 67 | static int null_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, |
66 | const unsigned char *iv, int enc); | 68 | const unsigned char *iv, int enc); |
67 | static int null_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, | 69 | static int null_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, |
diff --git a/src/lib/libcrypto/evp/e_rc4_hmac_md5.c b/src/lib/libcrypto/evp/e_rc4_hmac_md5.c index ac73361fa3..b8a6b4492e 100644 --- a/src/lib/libcrypto/evp/e_rc4_hmac_md5.c +++ b/src/lib/libcrypto/evp/e_rc4_hmac_md5.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: e_rc4_hmac_md5.c,v 1.8 2017/01/31 13:17:21 inoguchi Exp $ */ | 1 | /* $OpenBSD: e_rc4_hmac_md5.c,v 1.9 2021/12/12 21:30:13 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 2011 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2011 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -60,6 +60,8 @@ | |||
60 | #include <openssl/rc4.h> | 60 | #include <openssl/rc4.h> |
61 | #include <openssl/md5.h> | 61 | #include <openssl/md5.h> |
62 | 62 | ||
63 | #include "evp_locl.h" | ||
64 | |||
63 | /* FIXME: surely this is available elsewhere? */ | 65 | /* FIXME: surely this is available elsewhere? */ |
64 | #define EVP_RC4_KEY_SIZE 16 | 66 | #define EVP_RC4_KEY_SIZE 16 |
65 | 67 | ||
diff --git a/src/lib/libcrypto/evp/encode.c b/src/lib/libcrypto/evp/encode.c index 2f942a032f..30fcd858cf 100644 --- a/src/lib/libcrypto/evp/encode.c +++ b/src/lib/libcrypto/evp/encode.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: encode.c,v 1.28 2020/03/04 11:53:21 inoguchi Exp $ */ | 1 | /* $OpenBSD: encode.c,v 1.29 2021/12/12 21:30:13 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 | 62 | ||
63 | #include <openssl/evp.h> | 63 | #include <openssl/evp.h> |
64 | 64 | ||
65 | #include "evp_locl.h" | ||
66 | |||
65 | static unsigned char conv_ascii2bin(unsigned char a); | 67 | static unsigned char conv_ascii2bin(unsigned char a); |
66 | #define conv_bin2ascii(a) (data_bin2ascii[(a)&0x3f]) | 68 | #define conv_bin2ascii(a) (data_bin2ascii[(a)&0x3f]) |
67 | 69 | ||
diff --git a/src/lib/libcrypto/evp/evp_key.c b/src/lib/libcrypto/evp/evp_key.c index 91d0fc0de9..dcfb94e301 100644 --- a/src/lib/libcrypto/evp/evp_key.c +++ b/src/lib/libcrypto/evp/evp_key.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp_key.c,v 1.26 2018/08/14 17:59:26 tb Exp $ */ | 1 | /* $OpenBSD: evp_key.c,v 1.27 2021/12/12 21:30:13 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,6 +65,8 @@ | |||
65 | #include <openssl/ui.h> | 65 | #include <openssl/ui.h> |
66 | #include <openssl/x509.h> | 66 | #include <openssl/x509.h> |
67 | 67 | ||
68 | #include "evp_locl.h" | ||
69 | |||
68 | /* should be init to zeros. */ | 70 | /* should be init to zeros. */ |
69 | static char prompt_string[80]; | 71 | static char prompt_string[80]; |
70 | 72 | ||
diff --git a/src/lib/libcrypto/evp/evp_lib.c b/src/lib/libcrypto/evp/evp_lib.c index 83b81bd429..f2ff7bdec5 100644 --- a/src/lib/libcrypto/evp/evp_lib.c +++ b/src/lib/libcrypto/evp/evp_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp_lib.c,v 1.18 2021/10/24 13:51:07 tb Exp $ */ | 1 | /* $OpenBSD: evp_lib.c,v 1.19 2021/12/12 21:30:13 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 | * |
@@ -63,6 +63,8 @@ | |||
63 | #include <openssl/evp.h> | 63 | #include <openssl/evp.h> |
64 | #include <openssl/objects.h> | 64 | #include <openssl/objects.h> |
65 | 65 | ||
66 | #include "evp_locl.h" | ||
67 | |||
66 | int | 68 | int |
67 | EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type) | 69 | EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type) |
68 | { | 70 | { |
diff --git a/src/lib/libcrypto/evp/evp_pkey.c b/src/lib/libcrypto/evp/evp_pkey.c index 9ff544b84a..3ba0e1dd51 100644 --- a/src/lib/libcrypto/evp/evp_pkey.c +++ b/src/lib/libcrypto/evp/evp_pkey.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp_pkey.c,v 1.23 2018/08/24 20:26:03 tb Exp $ */ | 1 | /* $OpenBSD: evp_pkey.c,v 1.24 2021/12/12 21:30:13 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/x509.h> | 63 | #include <openssl/x509.h> |
64 | 64 | ||
65 | #include "asn1_locl.h" | 65 | #include "asn1_locl.h" |
66 | #include "evp_locl.h" | ||
66 | 67 | ||
67 | /* Extract a private key from a PKCS8 structure */ | 68 | /* Extract a private key from a PKCS8 structure */ |
68 | 69 | ||
diff --git a/src/lib/libcrypto/evp/m_dss.c b/src/lib/libcrypto/evp/m_dss.c index d23c9b4e71..45f09dde5d 100644 --- a/src/lib/libcrypto/evp/m_dss.c +++ b/src/lib/libcrypto/evp/m_dss.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_dss.c,v 1.16 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: m_dss.c,v 1.17 2021/12/12 21:30:13 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,8 @@ | |||
68 | #include <openssl/dsa.h> | 68 | #include <openssl/dsa.h> |
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | #include "evp_locl.h" | ||
72 | |||
71 | #ifndef OPENSSL_NO_SHA | 73 | #ifndef OPENSSL_NO_SHA |
72 | 74 | ||
73 | static int | 75 | static int |
diff --git a/src/lib/libcrypto/evp/m_dss1.c b/src/lib/libcrypto/evp/m_dss1.c index a906c11b69..283672cc1e 100644 --- a/src/lib/libcrypto/evp/m_dss1.c +++ b/src/lib/libcrypto/evp/m_dss1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_dss1.c,v 1.16 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: m_dss1.c,v 1.17 2021/12/12 21:30:13 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,8 @@ | |||
70 | #include <openssl/dsa.h> | 70 | #include <openssl/dsa.h> |
71 | #endif | 71 | #endif |
72 | 72 | ||
73 | #include "evp_locl.h" | ||
74 | |||
73 | static int | 75 | static int |
74 | init(EVP_MD_CTX *ctx) | 76 | init(EVP_MD_CTX *ctx) |
75 | { | 77 | { |
diff --git a/src/lib/libcrypto/evp/m_ecdsa.c b/src/lib/libcrypto/evp/m_ecdsa.c index b9af6423b5..b4bd21f7b0 100644 --- a/src/lib/libcrypto/evp/m_ecdsa.c +++ b/src/lib/libcrypto/evp/m_ecdsa.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_ecdsa.c,v 1.8 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: m_ecdsa.c,v 1.9 2021/12/12 21:30:13 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 | * |
@@ -117,6 +117,8 @@ | |||
117 | #include <openssl/objects.h> | 117 | #include <openssl/objects.h> |
118 | #include <openssl/x509.h> | 118 | #include <openssl/x509.h> |
119 | 119 | ||
120 | #include "evp_locl.h" | ||
121 | |||
120 | #ifndef OPENSSL_NO_SHA | 122 | #ifndef OPENSSL_NO_SHA |
121 | 123 | ||
122 | static int | 124 | static int |
diff --git a/src/lib/libcrypto/evp/m_gost2814789.c b/src/lib/libcrypto/evp/m_gost2814789.c index 279af872e0..7d11ec8c89 100644 --- a/src/lib/libcrypto/evp/m_gost2814789.c +++ b/src/lib/libcrypto/evp/m_gost2814789.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_gost2814789.c,v 1.2 2014/11/09 23:06:50 miod Exp $ */ | 1 | /* $OpenBSD: m_gost2814789.c,v 1.3 2021/12/12 21:30:13 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
@@ -48,6 +48,7 @@ | |||
48 | * OF THE POSSIBILITY OF SUCH DAMAGE. | 48 | * OF THE POSSIBILITY OF SUCH DAMAGE. |
49 | * ==================================================================== | 49 | * ==================================================================== |
50 | */ | 50 | */ |
51 | |||
51 | #include <openssl/opensslconf.h> | 52 | #include <openssl/opensslconf.h> |
52 | 53 | ||
53 | #ifndef OPENSSL_NO_GOST | 54 | #ifndef OPENSSL_NO_GOST |
@@ -56,6 +57,8 @@ | |||
56 | #include <openssl/gost.h> | 57 | #include <openssl/gost.h> |
57 | #include <openssl/objects.h> | 58 | #include <openssl/objects.h> |
58 | 59 | ||
60 | #include "evp_locl.h" | ||
61 | |||
59 | static int | 62 | static int |
60 | gost2814789_init(EVP_MD_CTX *ctx) | 63 | gost2814789_init(EVP_MD_CTX *ctx) |
61 | { | 64 | { |
diff --git a/src/lib/libcrypto/evp/m_gostr341194.c b/src/lib/libcrypto/evp/m_gostr341194.c index 66d9b4f303..40de232344 100644 --- a/src/lib/libcrypto/evp/m_gostr341194.c +++ b/src/lib/libcrypto/evp/m_gostr341194.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_gostr341194.c,v 1.2 2014/11/09 23:06:50 miod Exp $ */ | 1 | /* $OpenBSD: m_gostr341194.c,v 1.3 2021/12/12 21:30:13 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
@@ -48,6 +48,7 @@ | |||
48 | * OF THE POSSIBILITY OF SUCH DAMAGE. | 48 | * OF THE POSSIBILITY OF SUCH DAMAGE. |
49 | * ==================================================================== | 49 | * ==================================================================== |
50 | */ | 50 | */ |
51 | |||
51 | #include <stdio.h> | 52 | #include <stdio.h> |
52 | 53 | ||
53 | #include <openssl/opensslconf.h> | 54 | #include <openssl/opensslconf.h> |
@@ -58,6 +59,8 @@ | |||
58 | #include <openssl/gost.h> | 59 | #include <openssl/gost.h> |
59 | #include <openssl/objects.h> | 60 | #include <openssl/objects.h> |
60 | 61 | ||
62 | #include "evp_locl.h" | ||
63 | |||
61 | static int | 64 | static int |
62 | gostr341194_init(EVP_MD_CTX *ctx) | 65 | gostr341194_init(EVP_MD_CTX *ctx) |
63 | { | 66 | { |
diff --git a/src/lib/libcrypto/evp/m_md4.c b/src/lib/libcrypto/evp/m_md4.c index ab3cc852be..5729807986 100644 --- a/src/lib/libcrypto/evp/m_md4.c +++ b/src/lib/libcrypto/evp/m_md4.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_md4.c,v 1.16 2015/09/14 01:45:03 doug Exp $ */ | 1 | /* $OpenBSD: m_md4.c,v 1.17 2021/12/12 21:30:13 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 | * |
@@ -71,6 +71,8 @@ | |||
71 | #include <openssl/rsa.h> | 71 | #include <openssl/rsa.h> |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | #include "evp_locl.h" | ||
75 | |||
74 | static int | 76 | static int |
75 | init(EVP_MD_CTX *ctx) | 77 | init(EVP_MD_CTX *ctx) |
76 | { | 78 | { |
diff --git a/src/lib/libcrypto/evp/m_md5.c b/src/lib/libcrypto/evp/m_md5.c index 36cff7ab51..dbdc567616 100644 --- a/src/lib/libcrypto/evp/m_md5.c +++ b/src/lib/libcrypto/evp/m_md5.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_md5.c,v 1.15 2014/07/13 09:30:02 miod Exp $ */ | 1 | /* $OpenBSD: m_md5.c,v 1.16 2021/12/12 21:30:13 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 | * |
@@ -71,6 +71,8 @@ | |||
71 | #include <openssl/rsa.h> | 71 | #include <openssl/rsa.h> |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | #include "evp_locl.h" | ||
75 | |||
74 | static int | 76 | static int |
75 | init(EVP_MD_CTX *ctx) | 77 | init(EVP_MD_CTX *ctx) |
76 | { | 78 | { |
diff --git a/src/lib/libcrypto/evp/m_md5_sha1.c b/src/lib/libcrypto/evp/m_md5_sha1.c index 4e8a0c32f6..aaddbe9c81 100644 --- a/src/lib/libcrypto/evp/m_md5_sha1.c +++ b/src/lib/libcrypto/evp/m_md5_sha1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_md5_sha1.c,v 1.2 2018/08/10 17:30:29 jsing Exp $ */ | 1 | /* $OpenBSD: m_md5_sha1.c,v 1.3 2021/12/12 21:30:13 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -24,6 +24,8 @@ | |||
24 | #include <openssl/rsa.h> | 24 | #include <openssl/rsa.h> |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | #include "evp_locl.h" | ||
28 | |||
27 | struct md5_sha1_ctx { | 29 | struct md5_sha1_ctx { |
28 | MD5_CTX md5; | 30 | MD5_CTX md5; |
29 | SHA_CTX sha1; | 31 | SHA_CTX sha1; |
diff --git a/src/lib/libcrypto/evp/m_null.c b/src/lib/libcrypto/evp/m_null.c index 897be3cee9..86f5a08688 100644 --- a/src/lib/libcrypto/evp/m_null.c +++ b/src/lib/libcrypto/evp/m_null.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_null.c,v 1.9 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: m_null.c,v 1.10 2021/12/12 21:30:13 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/objects.h> | 62 | #include <openssl/objects.h> |
63 | #include <openssl/x509.h> | 63 | #include <openssl/x509.h> |
64 | 64 | ||
65 | #include "evp_locl.h" | ||
66 | |||
65 | static int | 67 | static int |
66 | init(EVP_MD_CTX *ctx) | 68 | init(EVP_MD_CTX *ctx) |
67 | { | 69 | { |
diff --git a/src/lib/libcrypto/evp/m_ripemd.c b/src/lib/libcrypto/evp/m_ripemd.c index be7f1393b0..b3369ab53f 100644 --- a/src/lib/libcrypto/evp/m_ripemd.c +++ b/src/lib/libcrypto/evp/m_ripemd.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_ripemd.c,v 1.12 2014/07/13 09:30:02 miod Exp $ */ | 1 | /* $OpenBSD: m_ripemd.c,v 1.13 2021/12/12 21:30:13 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 | * |
@@ -71,6 +71,8 @@ | |||
71 | #include <openssl/rsa.h> | 71 | #include <openssl/rsa.h> |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | #include "evp_locl.h" | ||
75 | |||
74 | static int | 76 | static int |
75 | init(EVP_MD_CTX *ctx) | 77 | init(EVP_MD_CTX *ctx) |
76 | { | 78 | { |
diff --git a/src/lib/libcrypto/evp/m_sha1.c b/src/lib/libcrypto/evp/m_sha1.c index 13d5b030d2..396f00aa13 100644 --- a/src/lib/libcrypto/evp/m_sha1.c +++ b/src/lib/libcrypto/evp/m_sha1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_sha1.c,v 1.17 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: m_sha1.c,v 1.18 2021/12/12 21:30:13 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,8 @@ | |||
70 | #include <openssl/rsa.h> | 70 | #include <openssl/rsa.h> |
71 | #endif | 71 | #endif |
72 | 72 | ||
73 | #include "evp_locl.h" | ||
74 | |||
73 | static int | 75 | static int |
74 | init(EVP_MD_CTX *ctx) | 76 | init(EVP_MD_CTX *ctx) |
75 | { | 77 | { |
diff --git a/src/lib/libcrypto/evp/m_sm3.c b/src/lib/libcrypto/evp/m_sm3.c index 66582b8e4a..614be5d780 100644 --- a/src/lib/libcrypto/evp/m_sm3.c +++ b/src/lib/libcrypto/evp/m_sm3.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_sm3.c,v 1.1 2018/11/11 06:53:31 tb Exp $ */ | 1 | /* $OpenBSD: m_sm3.c,v 1.2 2021/12/12 21:30:13 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018, Ribose Inc | 3 | * Copyright (c) 2018, Ribose Inc |
4 | * | 4 | * |
@@ -25,6 +25,8 @@ | |||
25 | #include <openssl/rsa.h> | 25 | #include <openssl/rsa.h> |
26 | #endif | 26 | #endif |
27 | 27 | ||
28 | #include "evp_locl.h" | ||
29 | |||
28 | static int | 30 | static int |
29 | sm3_init(EVP_MD_CTX *ctx) | 31 | sm3_init(EVP_MD_CTX *ctx) |
30 | { | 32 | { |
diff --git a/src/lib/libcrypto/evp/m_streebog.c b/src/lib/libcrypto/evp/m_streebog.c index 882c7852bb..cd6c312b02 100644 --- a/src/lib/libcrypto/evp/m_streebog.c +++ b/src/lib/libcrypto/evp/m_streebog.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_streebog.c,v 1.2 2014/11/09 23:06:50 miod Exp $ */ | 1 | /* $OpenBSD: m_streebog.c,v 1.3 2021/12/12 21:30:13 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
@@ -57,6 +57,8 @@ | |||
57 | #include <openssl/gost.h> | 57 | #include <openssl/gost.h> |
58 | #include <openssl/objects.h> | 58 | #include <openssl/objects.h> |
59 | 59 | ||
60 | #include "evp_locl.h" | ||
61 | |||
60 | static int | 62 | static int |
61 | streebog_init256(EVP_MD_CTX *ctx) | 63 | streebog_init256(EVP_MD_CTX *ctx) |
62 | { | 64 | { |
diff --git a/src/lib/libcrypto/evp/m_wp.c b/src/lib/libcrypto/evp/m_wp.c index 3f543ac0af..dd777565cf 100644 --- a/src/lib/libcrypto/evp/m_wp.c +++ b/src/lib/libcrypto/evp/m_wp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: m_wp.c,v 1.8 2014/07/13 09:30:02 miod Exp $ */ | 1 | /* $OpenBSD: m_wp.c,v 1.9 2021/12/12 21:30:13 tb Exp $ */ |
2 | 2 | ||
3 | #include <stdio.h> | 3 | #include <stdio.h> |
4 | 4 | ||
@@ -11,6 +11,8 @@ | |||
11 | #include <openssl/x509.h> | 11 | #include <openssl/x509.h> |
12 | #include <openssl/whrlpool.h> | 12 | #include <openssl/whrlpool.h> |
13 | 13 | ||
14 | #include "evp_locl.h" | ||
15 | |||
14 | static int | 16 | static int |
15 | init(EVP_MD_CTX *ctx) | 17 | init(EVP_MD_CTX *ctx) |
16 | { | 18 | { |
diff --git a/src/lib/libcrypto/evp/names.c b/src/lib/libcrypto/evp/names.c index dfcf9ee225..02529eef6c 100644 --- a/src/lib/libcrypto/evp/names.c +++ b/src/lib/libcrypto/evp/names.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: names.c,v 1.14 2018/03/17 16:20:01 beck Exp $ */ | 1 | /* $OpenBSD: names.c,v 1.15 2021/12/12 21:30:13 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/objects.h> | 62 | #include <openssl/objects.h> |
63 | #include <openssl/x509.h> | 63 | #include <openssl/x509.h> |
64 | 64 | ||
65 | #include "evp_locl.h" | ||
66 | |||
65 | int | 67 | int |
66 | EVP_add_cipher(const EVP_CIPHER *c) | 68 | EVP_add_cipher(const EVP_CIPHER *c) |
67 | { | 69 | { |
diff --git a/src/lib/libcrypto/evp/p5_crpt.c b/src/lib/libcrypto/evp/p5_crpt.c index 98e4549db1..b9482e0864 100644 --- a/src/lib/libcrypto/evp/p5_crpt.c +++ b/src/lib/libcrypto/evp/p5_crpt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p5_crpt.c,v 1.19 2020/01/12 07:11:13 inoguchi Exp $ */ | 1 | /* $OpenBSD: p5_crpt.c,v 1.20 2021/12/12 21:30:13 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 | */ |
@@ -64,6 +64,8 @@ | |||
64 | #include <openssl/evp.h> | 64 | #include <openssl/evp.h> |
65 | #include <openssl/x509.h> | 65 | #include <openssl/x509.h> |
66 | 66 | ||
67 | #include "evp_locl.h" | ||
68 | |||
67 | /* Doesn't do anything now: Builtin PBE algorithms in static table. | 69 | /* Doesn't do anything now: Builtin PBE algorithms in static table. |
68 | */ | 70 | */ |
69 | 71 | ||
diff --git a/src/lib/libcrypto/evp/p_dec.c b/src/lib/libcrypto/evp/p_dec.c index c827c5e4c2..c19cc651b3 100644 --- a/src/lib/libcrypto/evp/p_dec.c +++ b/src/lib/libcrypto/evp/p_dec.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p_dec.c,v 1.11 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: p_dec.c,v 1.12 2021/12/12 21:30:13 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 | * |
@@ -69,6 +69,8 @@ | |||
69 | #include <openssl/rsa.h> | 69 | #include <openssl/rsa.h> |
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | #include "evp_locl.h" | ||
73 | |||
72 | int | 74 | int |
73 | EVP_PKEY_decrypt_old(unsigned char *key, const unsigned char *ek, int ekl, | 75 | EVP_PKEY_decrypt_old(unsigned char *key, const unsigned char *ek, int ekl, |
74 | EVP_PKEY *priv) | 76 | EVP_PKEY *priv) |
diff --git a/src/lib/libcrypto/evp/p_enc.c b/src/lib/libcrypto/evp/p_enc.c index 49c46f1a70..5553429c50 100644 --- a/src/lib/libcrypto/evp/p_enc.c +++ b/src/lib/libcrypto/evp/p_enc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p_enc.c,v 1.11 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: p_enc.c,v 1.12 2021/12/12 21:30:13 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 | * |
@@ -69,6 +69,8 @@ | |||
69 | #include <openssl/rsa.h> | 69 | #include <openssl/rsa.h> |
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | #include "evp_locl.h" | ||
73 | |||
72 | int | 74 | int |
73 | EVP_PKEY_encrypt_old(unsigned char *ek, const unsigned char *key, int key_len, | 75 | EVP_PKEY_encrypt_old(unsigned char *ek, const unsigned char *key, int key_len, |
74 | EVP_PKEY *pubk) | 76 | EVP_PKEY *pubk) |
diff --git a/src/lib/libcrypto/evp/p_lib.c b/src/lib/libcrypto/evp/p_lib.c index 9577b10ea1..89ce4c451a 100644 --- a/src/lib/libcrypto/evp/p_lib.c +++ b/src/lib/libcrypto/evp/p_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p_lib.c,v 1.26 2021/03/29 15:57:23 tb Exp $ */ | 1 | /* $OpenBSD: p_lib.c,v 1.27 2021/12/12 21:30:13 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 | * |
@@ -82,6 +82,7 @@ | |||
82 | #endif | 82 | #endif |
83 | 83 | ||
84 | #include "asn1_locl.h" | 84 | #include "asn1_locl.h" |
85 | #include "evp_locl.h" | ||
85 | 86 | ||
86 | static void EVP_PKEY_free_it(EVP_PKEY *x); | 87 | static void EVP_PKEY_free_it(EVP_PKEY *x); |
87 | 88 | ||
diff --git a/src/lib/libcrypto/evp/p_open.c b/src/lib/libcrypto/evp/p_open.c index 57a46706b9..e4c59e68db 100644 --- a/src/lib/libcrypto/evp/p_open.c +++ b/src/lib/libcrypto/evp/p_open.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p_open.c,v 1.19 2017/05/02 03:59:44 deraadt Exp $ */ | 1 | /* $OpenBSD: p_open.c,v 1.20 2021/12/12 21:30:13 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 | * |
@@ -69,6 +69,8 @@ | |||
69 | #include <openssl/rsa.h> | 69 | #include <openssl/rsa.h> |
70 | #include <openssl/x509.h> | 70 | #include <openssl/x509.h> |
71 | 71 | ||
72 | #include "evp_locl.h" | ||
73 | |||
72 | int | 74 | int |
73 | EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, | 75 | EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, |
74 | const unsigned char *ek, int ekl, const unsigned char *iv, EVP_PKEY *priv) | 76 | const unsigned char *ek, int ekl, const unsigned char *iv, EVP_PKEY *priv) |
diff --git a/src/lib/libcrypto/evp/p_sign.c b/src/lib/libcrypto/evp/p_sign.c index 6312924518..34dafd87fe 100644 --- a/src/lib/libcrypto/evp/p_sign.c +++ b/src/lib/libcrypto/evp/p_sign.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p_sign.c,v 1.14 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: p_sign.c,v 1.15 2021/12/12 21:30:13 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 | * |
@@ -63,6 +63,8 @@ | |||
63 | #include <openssl/objects.h> | 63 | #include <openssl/objects.h> |
64 | #include <openssl/x509.h> | 64 | #include <openssl/x509.h> |
65 | 65 | ||
66 | #include "evp_locl.h" | ||
67 | |||
66 | int | 68 | int |
67 | EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, | 69 | EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, unsigned int *siglen, |
68 | EVP_PKEY *pkey) | 70 | EVP_PKEY *pkey) |
diff --git a/src/lib/libcrypto/evp/p_verify.c b/src/lib/libcrypto/evp/p_verify.c index 7dd752c4fb..6ecdef0787 100644 --- a/src/lib/libcrypto/evp/p_verify.c +++ b/src/lib/libcrypto/evp/p_verify.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p_verify.c,v 1.13 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: p_verify.c,v 1.14 2021/12/12 21:30:13 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 | * |
@@ -63,6 +63,8 @@ | |||
63 | #include <openssl/objects.h> | 63 | #include <openssl/objects.h> |
64 | #include <openssl/x509.h> | 64 | #include <openssl/x509.h> |
65 | 65 | ||
66 | #include "evp_locl.h" | ||
67 | |||
66 | int | 68 | int |
67 | EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf, | 69 | EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf, |
68 | unsigned int siglen, EVP_PKEY *pkey) | 70 | unsigned int siglen, EVP_PKEY *pkey) |