Fix openssl support and add it to tests

This commit is contained in:
Hamish Coleman 2023-06-28 23:55:43 +01:00
parent 473b89c963
commit f05c24b259
3 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,7 @@ jobs:
--enable-natpmp \
--enable-cap \
--enable-pcap \
--with-openssl \
--with-zstd \
CFLAGS="-O3"
make test

View File

@ -16,6 +16,7 @@
*
*/
#include "config.h"
#include <stdint.h> // for uint32_t, uint8_t
#include <stdlib.h> // for calloc, free
@ -27,6 +28,8 @@
#if defined (HAVE_OPENSSL_1_1) // openSSL 1.1 ---------------------------------------------------------------------
#include <openssl/err.h> // for ERR_print_errors
#include <openssl/evp.h> // for EVP_EncryptInit_ex, EVP_CIPHER_CTX_set_p...
// get any erorr message out of openssl
// taken from https://en.wikibooks.org/wiki/OpenSSL/Error_handling

View File

@ -21,6 +21,7 @@
#include <string.h> // for memcpy
#include "cc20.h"
#include "config.h" // HAVE_OPENSSL_1_1
#include "n2n.h" // for TRACE_ERROR, traceEvent
#include "portable_endian.h" // for htole32