Adjust OpenSSL context sizes for CiscoSSL

also, add static
This commit is contained in:
Sergei Golubchik 2023-06-22 15:26:23 +02:00
parent 1f72450260
commit 9c0e91a27c
2 changed files with 3 additions and 3 deletions

View File

@ -24,8 +24,8 @@
#define HAVE_OPENSSL11 1
#define SSL_LIBRARY OpenSSL_version(OPENSSL_VERSION)
#define ERR_remove_state(X) ERR_clear_error()
#define EVP_CIPHER_CTX_SIZE 176
#define EVP_MD_CTX_SIZE 48
#define EVP_CIPHER_CTX_SIZE 200
#define EVP_MD_CTX_SIZE 80
#undef EVP_MD_CTX_init
#define EVP_MD_CTX_init(X) do { memset((X), 0, EVP_MD_CTX_SIZE); EVP_MD_CTX_reset(X); } while(0)
#undef EVP_CIPHER_CTX_init

View File

@ -33,7 +33,7 @@ int check_openssl_compatibility()
#include <openssl/evp.h>
static uint testing;
size_t alloc_size, alloc_count;
static size_t alloc_size, alloc_count;
static void *coc_malloc(size_t size, const char *f __attribute__((unused)),
int l __attribute__((unused)))