Lines Matching refs:ssh_session
348 rc = ssh_get_server_publickey(sshc->ssh_session, &pubkey); in myssh_is_known()
350 rc = ssh_get_publickey(sshc->ssh_session, &pubkey); in myssh_is_known()
392 vstate = ssh_session_get_known_hosts_entry(sshc->ssh_session, in myssh_is_known()
452 vstate = ssh_is_server_known(sshc->ssh_session); in myssh_is_known()
513 rc = ssh_session_update_known_hosts(sshc->ssh_session); in myssh_is_known()
515 rc = ssh_write_knownhost(sshc->ssh_session); in myssh_is_known()
607 rc = ssh_userauth_kbdint(sshc->ssh_session, NULL, NULL); in myssh_auth_interactive()
614 nprompts = ssh_userauth_kbdint_getnprompts(sshc->ssh_session); in myssh_auth_interactive()
618 rc = ssh_userauth_kbdint_setanswer(sshc->ssh_session, 0, conn->passwd); in myssh_auth_interactive()
626 rc = ssh_userauth_kbdint(sshc->ssh_session, NULL, NULL); in myssh_auth_interactive()
632 nprompts = ssh_userauth_kbdint_getnprompts(sshc->ssh_session); in myssh_auth_interactive()
645 rc = ssh_userauth_kbdint(sshc->ssh_session, NULL, NULL); in myssh_auth_interactive()
695 ssh_set_blocking(sshc->ssh_session, 0); in myssh_statemach_act()
701 rc = ssh_connect(sshc->ssh_session); in myssh_statemach_act()
727 rc = ssh_userauth_none(sshc->ssh_session, NULL); in myssh_statemach_act()
744 sshc->auth_methods = ssh_userauth_list(sshc->ssh_session, NULL); in myssh_statemach_act()
775 rc = ssh_userauth_try_publickey(sshc->ssh_session, NULL, in myssh_statemach_act()
804 rc = ssh_userauth_publickey_auto(sshc->ssh_session, NULL, in myssh_statemach_act()
822 rc = ssh_userauth_publickey(sshc->ssh_session, NULL, sshc->privkey); in myssh_statemach_act()
846 rc = ssh_userauth_gssapi(sshc->ssh_session); in myssh_statemach_act()
896 rc = ssh_userauth_password(sshc->ssh_session, NULL, conn->passwd); in myssh_statemach_act()
938 ssh_set_blocking(sshc->ssh_session, 1); in myssh_statemach_act()
940 sshc->sftp_session = sftp_new(sshc->ssh_session); in myssh_statemach_act()
943 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
952 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1042 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1061 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1076 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1092 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1106 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1120 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1137 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1416 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1496 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1510 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1605 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1813 ssh_set_blocking(sshc->ssh_session, 1); in myssh_statemach_act()
1824 ssh_scp_new(sshc->ssh_session, SSH_SCP_WRITE, protop->path); in myssh_statemach_act()
1829 ssh_scp_new(sshc->ssh_session, SSH_SCP_READ, protop->path); in myssh_statemach_act()
1834 err_msg = ssh_get_error(sshc->ssh_session); in myssh_statemach_act()
1845 err_msg = ssh_get_error(sshc->ssh_session); in myssh_statemach_act()
1855 err_msg = ssh_get_error(sshc->ssh_session); in myssh_statemach_act()
1884 err_msg = ssh_get_error(sshc->ssh_session); in myssh_statemach_act()
1897 err_msg = ssh_get_error(sshc->ssh_session); in myssh_statemach_act()
1937 ssh_get_error(sshc->ssh_session)); in myssh_statemach_act()
1951 ssh_set_blocking(sshc->ssh_session, 0); in myssh_statemach_act()
1965 ssh_disconnect(sshc->ssh_session); in myssh_statemach_act()
1973 if(sshc->ssh_session) { in myssh_statemach_act()
1974 ssh_free(sshc->ssh_session); in myssh_statemach_act()
1975 sshc->ssh_session = NULL; in myssh_statemach_act()
1980 DEBUGASSERT(sshc->ssh_session == NULL); in myssh_statemach_act()
2071 int dir = ssh_get_poll_flags(sshc->ssh_session); in myssh_block2waitfor()
2191 ssh->ssh_session = ssh_new(); in myssh_connect()
2192 if(!ssh->ssh_session) { in myssh_connect()
2197 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_HOST, conn->host.name); in myssh_connect()
2203 rc = ssh_options_parse_config(ssh->ssh_session, NULL); in myssh_connect()
2209 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_FD, &sock); in myssh_connect()
2217 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_USER, conn->user); in myssh_connect()
2226 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_KNOWNHOSTS, in myssh_connect()
2235 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_PORT, in myssh_connect()
2244 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_COMPRESSION, in myssh_connect()
2360 if(ssh->ssh_session) { in scp_disconnect()
2526 if(conn->proto.sshc.ssh_session) { in sftp_disconnect()