Commit adab71423f9c26ecc0c0651d1357cdefd228b186

Authored by Perry Werneck
1 parent 647ae8b9
Exists in master and in 1 other branch develop

Adjustments in FIPs mode tweak for win32.

Showing 1 changed file with 10 additions and 1 deletions   Show diff stats
src/network_modules/openssl/context.c
@@ -156,7 +156,6 @@ SSL_CTX * lib3270_openssl_get_context(H3270 *hSession) { @@ -156,7 +156,6 @@ SSL_CTX * lib3270_openssl_get_context(H3270 *hSession) {
156 return context; 156 return context;
157 157
158 SSL_load_error_strings(); 158 SSL_load_error_strings();
159 - SSL_library_init();  
160 159
161 #if !defined(OPENSSL_FIPS) 160 #if !defined(OPENSSL_FIPS)
162 161
@@ -196,6 +195,14 @@ SSL_CTX * lib3270_openssl_get_context(H3270 *hSession) { @@ -196,6 +195,14 @@ SSL_CTX * lib3270_openssl_get_context(H3270 *hSession) {
196 (unsigned int) mode, 195 (unsigned int) mode,
197 err_buff 196 err_buff
198 ); 197 );
  198 +
  199 + } else {
  200 + lib3270_write_log(
  201 + hSession,
  202 + "openssl",
  203 + "FIPS mode set to %u\n",
  204 + (unsigned int) mode
  205 + );
199 } 206 }
200 } 207 }
201 208
@@ -220,6 +227,8 @@ SSL_CTX * lib3270_openssl_get_context(H3270 *hSession) { @@ -220,6 +227,8 @@ SSL_CTX * lib3270_openssl_get_context(H3270 *hSession) {
220 227
221 #endif 228 #endif
222 229
  230 + SSL_library_init();
  231 +
223 context = SSL_CTX_new(SSLv23_method()); 232 context = SSL_CTX_new(SSLv23_method());
224 if(context == NULL) { 233 if(context == NULL) {
225 static const LIB3270_SSL_MESSAGE message = { 234 static const LIB3270_SSL_MESSAGE message = {