1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +03:00

More logging

This commit is contained in:
Aris Adamantiadis
2009-11-30 23:56:21 +01:00
parent 270a8a26fa
commit 96afa4530c
2 changed files with 3 additions and 0 deletions

View File

@ -60,11 +60,13 @@ int main(int argc, char **argv){
struct socket *s;
ssh_session session;
ssh_poll_ctx ctx;
int verbosity=SSH_LOG_FUNCTIONS;
if(argc < 3){
printf("Usage : %s host port\n", argv[0]);
return EXIT_FAILURE;
}
session=ssh_new();
ssh_options_set(session,SSH_OPTIONS_LOG_VERBOSITY,&verbosity);
ssh_init();
s=ssh_socket_new(session);
ctx=ssh_poll_ctx_new(2);