Lines Matching refs:ssh_session

350   rc = ssh_get_server_publickey(sshc->ssh_session, &pubkey);  in myssh_is_known()
352 rc = ssh_get_publickey(sshc->ssh_session, &pubkey); in myssh_is_known()
391 vstate = ssh_session_get_known_hosts_entry(sshc->ssh_session, in myssh_is_known()
448 vstate = ssh_is_server_known(sshc->ssh_session); in myssh_is_known()
508 rc = ssh_session_update_known_hosts(sshc->ssh_session); in myssh_is_known()
510 rc = ssh_write_knownhost(sshc->ssh_session); in myssh_is_known()
603 rc = ssh_userauth_kbdint(sshc->ssh_session, NULL, NULL); in myssh_auth_interactive()
610 nprompts = ssh_userauth_kbdint_getnprompts(sshc->ssh_session); in myssh_auth_interactive()
614 rc = ssh_userauth_kbdint_setanswer(sshc->ssh_session, 0, conn->passwd); in myssh_auth_interactive()
622 rc = ssh_userauth_kbdint(sshc->ssh_session, NULL, NULL); in myssh_auth_interactive()
628 nprompts = ssh_userauth_kbdint_getnprompts(sshc->ssh_session); in myssh_auth_interactive()
641 rc = ssh_userauth_kbdint(sshc->ssh_session, NULL, NULL); in myssh_auth_interactive()
690 ssh_set_blocking(sshc->ssh_session, 0); in myssh_statemach_act()
696 rc = ssh_connect(sshc->ssh_session); in myssh_statemach_act()
726 rc = ssh_userauth_none(sshc->ssh_session, NULL); in myssh_statemach_act()
744 (unsigned int)ssh_userauth_list(sshc->ssh_session, NULL); in myssh_statemach_act()
785 rc = ssh_userauth_try_publickey(sshc->ssh_session, NULL, in myssh_statemach_act()
814 rc = ssh_userauth_publickey_auto(sshc->ssh_session, NULL, in myssh_statemach_act()
832 rc = ssh_userauth_publickey(sshc->ssh_session, NULL, sshc->privkey); in myssh_statemach_act()
856 rc = ssh_userauth_gssapi(sshc->ssh_session); in myssh_statemach_act()
907 rc = ssh_userauth_password(sshc->ssh_session, NULL, conn->passwd); in myssh_statemach_act()
949 ssh_set_blocking(sshc->ssh_session, 1); in myssh_statemach_act()
951 sshc->sftp_session = sftp_new(sshc->ssh_session); in myssh_statemach_act()
954 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
962 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1052 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1071 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1086 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1102 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1116 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1130 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1147 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1437 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1506 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1520 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1594 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1801 ssh_set_blocking(sshc->ssh_session, 1); in myssh_statemach_act()
1812 ssh_scp_new(sshc->ssh_session, SSH_SCP_WRITE, protop->path); in myssh_statemach_act()
1817 ssh_scp_new(sshc->ssh_session, SSH_SCP_READ, protop->path); in myssh_statemach_act()
1822 err_msg = ssh_get_error(sshc->ssh_session); in myssh_statemach_act()
1833 err_msg = ssh_get_error(sshc->ssh_session); in myssh_statemach_act()
1843 err_msg = ssh_get_error(sshc->ssh_session); in myssh_statemach_act()
1872 err_msg = ssh_get_error(sshc->ssh_session); in myssh_statemach_act()
1885 err_msg = ssh_get_error(sshc->ssh_session); in myssh_statemach_act()
1925 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1939 ssh_set_blocking(sshc->ssh_session, 0); in myssh_statemach_act()
1953 ssh_disconnect(sshc->ssh_session); in myssh_statemach_act()
1967 if(sshc->ssh_session) { in myssh_statemach_act()
1968 ssh_free(sshc->ssh_session); in myssh_statemach_act()
1969 sshc->ssh_session = NULL; in myssh_statemach_act()
1974 DEBUGASSERT(sshc->ssh_session == NULL); in myssh_statemach_act()
2068 int dir = ssh_get_poll_flags(sshc->ssh_session); in myssh_block2waitfor()
2188 ssh->ssh_session = ssh_new(); in myssh_connect()
2189 if(!ssh->ssh_session) { in myssh_connect()
2197 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_HOST, ipv6); in myssh_connect()
2200 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_HOST, conn->host.name); in myssh_connect()
2207 rc = ssh_options_parse_config(ssh->ssh_session, NULL); in myssh_connect()
2213 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_FD, &sock); in myssh_connect()
2221 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_USER, conn->user); in myssh_connect()
2230 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_KNOWNHOSTS, in myssh_connect()
2239 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_PORT, in myssh_connect()
2248 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_COMPRESSION, in myssh_connect()
2363 if(ssh->ssh_session) { in scp_disconnect()
2529 if(conn->proto.sshc.ssh_session) { in sftp_disconnect()