mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
torture.c Add environment variable to server fork
Signed-off-by: Norbert Pocs <npocs@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
66be590657
commit
2e8e666b1d
@@ -1033,11 +1033,13 @@ void torture_setup_libssh_server(void **state, const char *server_path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Write the environment setting */
|
/* Write the environment setting */
|
||||||
|
/* OPENSSL variable is needed to enable SHA1 */
|
||||||
printed = snprintf(env, sizeof(env),
|
printed = snprintf(env, sizeof(env),
|
||||||
"SOCKET_WRAPPER_DIR=%s "
|
"SOCKET_WRAPPER_DIR=%s "
|
||||||
"SOCKET_WRAPPER_DEFAULT_IFACE=10 "
|
"SOCKET_WRAPPER_DEFAULT_IFACE=10 "
|
||||||
"LD_PRELOAD=%s "
|
"LD_PRELOAD=%s "
|
||||||
"%s",
|
"%s "
|
||||||
|
"OPENSSL_ENABLE_SHA1_SIGNATURES=1",
|
||||||
s->socket_dir, ld_preload, force_fips);
|
s->socket_dir, ld_preload, force_fips);
|
||||||
if (printed < 0) {
|
if (printed < 0) {
|
||||||
fail_msg("Failed to print env!");
|
fail_msg("Failed to print env!");
|
||||||
|
|||||||
Reference in New Issue
Block a user