Skip to content
Snippets Groups Projects
Commit b5981954 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Put back the (apparently necessary) work-arounds for the cryptLib warnings.

parent 09b30ce2
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1250 passed
...@@ -111,9 +111,11 @@ void sbbs_t::ver() ...@@ -111,9 +111,11 @@ void sbbs_t::ver()
#ifdef USE_CRYPTLIB #ifdef USE_CRYPTLIB
if(is_crypt_initialized()) { if(is_crypt_initialized()) {
int cl_major=0, cl_minor=0, cl_step=0; int cl_major=0, cl_minor=0, cl_step=0;
cryptGetAttribute(CRYPT_UNUSED, CRYPT_OPTION_INFO_MAJORVERSION, &cl_major); int result;
cryptGetAttribute(CRYPT_UNUSED, CRYPT_OPTION_INFO_MINORVERSION, &cl_minor); result = cryptGetAttribute(CRYPT_UNUSED, CRYPT_OPTION_INFO_MAJORVERSION, &cl_major);
cryptGetAttribute(CRYPT_UNUSED, CRYPT_OPTION_INFO_STEPPING, &cl_step); result = cryptGetAttribute(CRYPT_UNUSED, CRYPT_OPTION_INFO_MINORVERSION, &cl_minor);
result = cryptGetAttribute(CRYPT_UNUSED, CRYPT_OPTION_INFO_STEPPING, &cl_step);
(void)result;
safe_snprintf(str, sizeof(str), "cryptlib %u.%u.%u (%u)", cl_major, cl_minor, cl_step, CRYPTLIB_VERSION); safe_snprintf(str, sizeof(str), "cryptlib %u.%u.%u (%u)", cl_major, cl_minor, cl_step, CRYPTLIB_VERSION);
center(str); center(str);
CRLF; CRLF;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment