mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-08-17 21:25:50 +02:00
- Fix sha1 enable environment variable in test code on windows.
This commit is contained in:
@@ -297,7 +297,11 @@ setup_config(FILE* in, int* lineno, int* pass_argc, char* pass_argv[])
|
||||
/* Allow the use of SHA1 signatures for the test,
|
||||
* in case that OpenSSL disallows use of RSASHA1
|
||||
* with rh-allow-sha1-signatures disabled. */
|
||||
#ifndef UB_ON_WINDOWS
|
||||
setenv("OPENSSL_ENABLE_SHA1_SIGNATURES", "1", 0);
|
||||
#else
|
||||
_putenv("OPENSSL_ENABLE_SHA1_SIGNATURES=1");
|
||||
#endif
|
||||
}
|
||||
fputs(line, cfg);
|
||||
}
|
||||
|
||||
@@ -638,7 +638,11 @@ verify_test(void)
|
||||
/* Allow the use of SHA1 signatures for the test,
|
||||
* in case that OpenSSL disallows use of RSASHA1
|
||||
* with rh-allow-sha1-signatures disabled. */
|
||||
#ifndef UB_ON_WINDOWS
|
||||
setenv("OPENSSL_ENABLE_SHA1_SIGNATURES", "1", 0);
|
||||
#else
|
||||
_putenv("OPENSSL_ENABLE_SHA1_SIGNATURES=1");
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user