Move the dst__openssl_toresult to isc_tls unit

Since the enable_fips_mode() now resides inside the isc_tls unit, BIND 9
would fail to compile when FIPS mode was enabled as the DST subsystem
logging functions were missing.

Move the crypto library logging functions from the openssl_link unit to
isc_tls unit and enhance it, so it can now be used from both places
keeping the old dst__openssl_toresult* macros alive.
This commit is contained in:
Ondřej Surý
2024-08-08 10:59:49 +02:00
parent f202937078
commit 39aef50b9b
10 changed files with 115 additions and 134 deletions

View File

@@ -24,7 +24,6 @@
#define UNIT_TESTING
#include <cmocka.h>
#include <openssl_shim.h>
#include <openssl/err.h>
@@ -37,6 +36,10 @@
#include <dns/rdata.h>
#include "../isc/openssl_shim.c"
#include "../isc/openssl_shim.h"
#include "openssl_shim.h"
#include <tests/dns.h>
static bool debug = false;