1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-07-29 13:01:14 +03:00

test_ssh2: support FIXTURE_TRACE_ALL* envvars

Cherry-picked from #1017
This commit is contained in:
Viktor Szakats
2023-04-29 22:40:31 +00:00
parent efdacfc791
commit 3f3236eb08

View File

@ -121,6 +121,12 @@ int main(int argc, char *argv[])
goto shutdown;
}
if(getenv("FIXTURE_TRACE_ALL_CONNECT") ||
getenv("FIXTURE_TRACE_ALL")) {
libssh2_trace(session, ~0);
fprintf(stdout, "Trace all enabled.\n");
}
libssh2_session_set_blocking(session, 1);
rc = libssh2_session_handshake(session, sock);