From 2bc61ef3fb2ddd7add98aff081e5c6d721e10ba8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 31 Jan 2024 17:59:51 +0300 Subject: fixes #4149 (OpenSSL: switch to OpenSSL 3.x) --- include/crypto/types.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 include/crypto/types.h (limited to 'include/crypto/types.h') diff --git a/include/crypto/types.h b/include/crypto/types.h new file mode 100644 index 0000000000..ad17f052e4 --- /dev/null +++ b/include/crypto/types.h @@ -0,0 +1,32 @@ +/* + * Copyright 2020-2023 The OpenSSL Project Authors. All Rights Reserved. + * + * Licensed under the Apache License 2.0 (the "License"). You may not use + * this file except in compliance with the License. You can obtain a copy + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + */ + +/* When removal is simulated, we still need the type internally */ + +#ifndef OSSL_CRYPTO_TYPES_H +# define OSSL_CRYPTO_TYPES_H +# pragma once + +# ifdef OPENSSL_NO_DEPRECATED_3_0 +typedef struct rsa_st RSA; +typedef struct rsa_meth_st RSA_METHOD; +# ifndef OPENSSL_NO_EC +typedef struct ec_key_st EC_KEY; +typedef struct ec_key_method_st EC_KEY_METHOD; +# endif +# ifndef OPENSSL_NO_DSA +typedef struct dsa_st DSA; +# endif +# endif + +# ifndef OPENSSL_NO_EC +typedef struct ecx_key_st ECX_KEY; +# endif + +#endif -- cgit v1.2.3