diff --git a/crypto/evp_extra/internal.h b/crypto/evp_extra/internal.h index 6d82267b1a6..26c823b40d2 100644 --- a/crypto/evp_extra/internal.h +++ b/crypto/evp_extra/internal.h @@ -2,6 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 OR ISC #include +#include "../fipsmodule/evp/internal.h" typedef struct { // key is the concatenation of the private seed and public key. It is stored diff --git a/crypto/fipsmodule/evp/internal.h b/crypto/fipsmodule/evp/internal.h index ba18ee644ee..1e7abb82773 100644 --- a/crypto/fipsmodule/evp/internal.h +++ b/crypto/fipsmodule/evp/internal.h @@ -70,6 +70,9 @@ extern "C" { // |EVP_MD_CTX_set_pkey_ctx|. #define EVP_MD_CTX_FLAG_KEEP_PKEY_CTX 0x0400 +typedef struct evp_pkey_asn1_method_st EVP_PKEY_ASN1_METHOD; +typedef struct evp_pkey_method_st EVP_PKEY_METHOD; + struct evp_pkey_asn1_method_st { int pkey_id; uint8_t oid[11]; diff --git a/include/openssl/base.h b/include/openssl/base.h index 1421ed32799..250578b69bd 100644 --- a/include/openssl/base.h +++ b/include/openssl/base.h @@ -431,9 +431,7 @@ typedef struct evp_hpke_kem_st EVP_HPKE_KEM; typedef struct evp_hpke_key_st EVP_HPKE_KEY; typedef struct evp_kem_st EVP_KEM; typedef struct kem_key_st KEM_KEY; -typedef struct evp_pkey_asn1_method_st EVP_PKEY_ASN1_METHOD; typedef struct evp_pkey_ctx_st EVP_PKEY_CTX; -typedef struct evp_pkey_method_st EVP_PKEY_METHOD; typedef struct evp_pkey_st EVP_PKEY; typedef struct hmac_ctx_st HMAC_CTX; typedef struct md4_state_st MD4_CTX;