[core,crypto] fix missing OpenSSL includes.

This commit is contained in:
Vic Lee
2023-12-08 12:48:36 +08:00
committed by akallabeth
parent 2b1aae0238
commit 97ef5d09e9
6 changed files with 6 additions and 1 deletions

View File

@@ -36,6 +36,7 @@
#include <openssl/pem.h>
#include <openssl/rsa.h>
#include <openssl/bn.h>
#include "cert_common.h"
#include "crypto.h"

View File

@@ -40,6 +40,7 @@
#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/rsa.h>
#include <openssl/bn.h>
#if defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3)
#include <openssl/core_names.h>

View File

@@ -22,6 +22,7 @@
#include <errno.h>
#include <openssl/objects.h>
#include <openssl/bn.h>
#include <freerdp/config.h>

View File

@@ -36,6 +36,7 @@
#include <openssl/pem.h>
#include <openssl/rsa.h>
#include <openssl/bn.h>
#include "privatekey.h"
#include "cert_common.h"

View File

@@ -93,7 +93,7 @@ static WINPR_RC4_CTX* winpr_RC4_New_Internal(const BYTE* key, size_t keylen, BOO
if (!evp)
goto fail;
EVP_CIPHER_CTX_init(ctx->ctx);
EVP_CIPHER_CTX_reset(ctx->ctx);
if (EVP_EncryptInit_ex(ctx->ctx, evp, NULL, NULL, NULL) != 1)
goto fail;

View File

@@ -36,6 +36,7 @@
#include <openssl/rsa.h>
#include <openssl/pkcs12.h>
#include <openssl/x509v3.h>
#include <openssl/bn.h>
#endif
#include <winpr/tools/makecert.h>