From: Fred T. Hamster Date: Fri, 27 Feb 2026 00:53:44 +0000 (-0500) Subject: added guardrails for still malfunctioning openssl X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=46b2dda6b32566d9dcd271ef50808e684a440328;p=feisty_meow.git added guardrails for still malfunctioning openssl openssl is still failing on lots of my hosts, even with this spiffy new code that loads the legacy provider. now putting in landmines to blow the legs off that bug if we see it. many curses deleted. --- diff --git a/nucleus/library/crypto/ssl_init.cpp b/nucleus/library/crypto/ssl_init.cpp index d7d617cd..5f5501ea 100644 --- a/nucleus/library/crypto/ssl_init.cpp +++ b/nucleus/library/crypto/ssl_init.cpp @@ -35,6 +35,7 @@ namespace crypto { // uncomment to cause more debugging information to be generated, plus // more checking to be performed in the SSL support. +#define ALWAYS_LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger::get(), s) #ifdef DEBUG_SSL #undef LOG #define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger::get(), s) @@ -54,11 +55,19 @@ ssl_init::ssl_init() { FUNCDEF("ctor"); - // new code needed because blowfish is considered legacy code now. ugh. - OSSL_PROVIDER *legacy_provider = OSSL_PROVIDER_load(NULL_POINTER, "legacy"); // also load the default provider or the standard, still accepted, algorithms will not be available. OSSL_PROVIDER *default_provider = OSSL_PROVIDER_load(NULL_POINTER, "default"); -//hmmm: do we need to clean up these providers? + if (!default_provider) { + ALWAYS_LOG("failed to load default openssl provider! mega flopsweat fail!"); + exit(1); + } + // new code needed because blowfish is considered legacy code now. ugh. + OSSL_PROVIDER *legacy_provider = OSSL_PROVIDER_load(NULL_POINTER, "legacy"); + if (!legacy_provider) { + ALWAYS_LOG("failed to load legacy openssl provider! mega boofer fail!"); + exit(1); + } +//hmmm: do we need to clean up those providers? #ifdef DEBUG_SSL LOG("prior to crypto debug init");