0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 20:13:05 +02:00

openssl: Missing inline keyword in a couple of compat functions

Two of the OpenSSL API compat function declarations in compat.hpp was
missing the 'inline' keyword.  Without this keyword, builds using
multiple compilation units (such as the coreUnitTests) would fail due to
multiple declarations of these functions.

Signed-off-by: David Sommerseth <davids@openvpn.net>
This commit is contained in:
David Sommerseth 2019-09-11 18:26:31 +02:00
parent 32b984c0ff
commit 2f8fe2d318
No known key found for this signature in database
GPG Key ID: 86CF944C9671FDF2

View File

@ -97,7 +97,7 @@ inline EVP_MD_CTX *EVP_MD_CTX_new()
return new EVP_MD_CTX();
}
void EVP_MD_CTX_free(EVP_MD_CTX *ctx)
inline void EVP_MD_CTX_free(EVP_MD_CTX *ctx)
{
delete ctx;
}
@ -211,10 +211,10 @@ inline int RSA_meth_set_priv_enc(RSA_METHOD *meth,
return 1;
}
int RSA_meth_set_priv_dec(RSA_METHOD *meth,
int (*priv_dec)(int flen, const unsigned char *from,
unsigned char *to, RSA *rsa,
int padding))
inline int RSA_meth_set_priv_dec(RSA_METHOD *meth,
int (*priv_dec)(int flen, const unsigned char *from,
unsigned char *to, RSA *rsa,
int padding))
{
meth->rsa_priv_dec = priv_dec;
return 1;