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

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

parent 5f85707b
Branches
Tags
No related merge requests found
......@@ -111,9 +111,11 @@ void sbbs_t::ver()
#ifdef USE_CRYPTLIB
if(is_crypt_initialized()) {
int cl_major=0, cl_minor=0, cl_step=0;
cryptGetAttribute(CRYPT_UNUSED, CRYPT_OPTION_INFO_MAJORVERSION, &cl_major);
cryptGetAttribute(CRYPT_UNUSED, CRYPT_OPTION_INFO_MINORVERSION, &cl_minor);
cryptGetAttribute(CRYPT_UNUSED, CRYPT_OPTION_INFO_STEPPING, &cl_step);
int result;
result = cryptGetAttribute(CRYPT_UNUSED, CRYPT_OPTION_INFO_MAJORVERSION, &cl_major);
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);
center(str);
CRLF;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment