mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 00:21:11 +02:00
Fix openssl support and add it to tests
This commit is contained in:
parent
473b89c963
commit
f05c24b259
1
.github/workflows/tests.yml
vendored
1
.github/workflows/tests.yml
vendored
|
@ -62,6 +62,7 @@ jobs:
|
||||||
--enable-natpmp \
|
--enable-natpmp \
|
||||||
--enable-cap \
|
--enable-cap \
|
||||||
--enable-pcap \
|
--enable-pcap \
|
||||||
|
--with-openssl \
|
||||||
--with-zstd \
|
--with-zstd \
|
||||||
CFLAGS="-O3"
|
CFLAGS="-O3"
|
||||||
make test
|
make test
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include <stdint.h> // for uint32_t, uint8_t
|
#include <stdint.h> // for uint32_t, uint8_t
|
||||||
#include <stdlib.h> // for calloc, free
|
#include <stdlib.h> // for calloc, free
|
||||||
|
@ -27,6 +28,8 @@
|
||||||
|
|
||||||
#if defined (HAVE_OPENSSL_1_1) // openSSL 1.1 ---------------------------------------------------------------------
|
#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
|
// get any erorr message out of openssl
|
||||||
// taken from https://en.wikibooks.org/wiki/OpenSSL/Error_handling
|
// taken from https://en.wikibooks.org/wiki/OpenSSL/Error_handling
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include <string.h> // for memcpy
|
#include <string.h> // for memcpy
|
||||||
#include "cc20.h"
|
#include "cc20.h"
|
||||||
#include "config.h" // HAVE_OPENSSL_1_1
|
#include "config.h" // HAVE_OPENSSL_1_1
|
||||||
|
#include "n2n.h" // for TRACE_ERROR, traceEvent
|
||||||
#include "portable_endian.h" // for htole32
|
#include "portable_endian.h" // for htole32
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user