Lines Matching refs:ssh_session

484     const char *remotekey = libssh2_session_hostkey(sshc->ssh_session,  in ssh_knownhost()
667 fingerprint = libssh2_hostkey_hash(sshc->ssh_session, in ssh_check_fingerprint()
674 hostkey = libssh2_session_hostkey(sshc->ssh_session, &len, NULL); in ssh_check_fingerprint()
742 fingerprint = libssh2_hostkey_hash(sshc->ssh_session, in ssh_check_fingerprint()
781 const char *remotekey = libssh2_session_hostkey(sshc->ssh_session, in ssh_check_fingerprint()
941 rc = libssh2_session_method_pref(sshc->ssh_session, in ssh_force_knownhost_key_type()
946 libssh2_session_last_error(sshc->ssh_session, &errmsg, &errlen, 0); in ssh_force_knownhost_key_type()
1165 int rc = libssh2_session_last_errno(sshc->ssh_session); in sftp_upload_init()
1680 libssh2_session_last_errno(sshc->ssh_session)); in sftp_readdir()
1711 libssh2_session_set_blocking(sshc->ssh_session, 0); in ssh_statemachine()
1724 rc = session_startup(sshc->ssh_session, conn->sock[FIRSTSOCKET]); in ssh_statemachine()
1730 (void)libssh2_session_last_error(sshc->ssh_session, &err_msg, NULL, 0); in ssh_statemachine()
1764 sshc->authlist = libssh2_userauth_list(sshc->ssh_session, in ssh_statemachine()
1769 if(libssh2_userauth_authenticated(sshc->ssh_session)) { in ssh_statemachine()
1775 rc = libssh2_session_last_errno(sshc->ssh_session); in ssh_statemachine()
1797 rc = libssh2_userauth_publickey_fromfile_ex(sshc->ssh_session, in ssh_statemachine()
1824 (void)libssh2_session_last_error(sshc->ssh_session, in ssh_statemachine()
1845 rc = libssh2_userauth_password_ex(sshc->ssh_session, conn->user, in ssh_statemachine()
1887 sshc->ssh_agent = libssh2_agent_init(sshc->ssh_session); in ssh_statemachine()
1984 rc = libssh2_userauth_keyboard_interactive_ex(sshc->ssh_session, in ssh_statemachine()
2029 sshc->sftp_session = libssh2_sftp_init(sshc->ssh_session); in ssh_statemachine()
2032 if(libssh2_session_last_errno(sshc->ssh_session) == in ssh_statemachine()
2038 (void)libssh2_session_last_error(sshc->ssh_session, in ssh_statemachine()
2471 if(libssh2_session_last_errno(sshc->ssh_session) == in ssh_statemachine()
2562 if(libssh2_session_last_errno(sshc->ssh_session) == in ssh_statemachine()
2595 (void)libssh2_session_last_error(sshc->ssh_session, in ssh_statemachine()
2632 (void)libssh2_session_last_error(sshc->ssh_session, &err_msg, in ssh_statemachine()
2685 SCP_SEND(sshc->ssh_session, sshp->path, data->set.new_file_perms, in ssh_statemachine()
2691 if(libssh2_session_last_errno(sshc->ssh_session) == in ssh_statemachine()
2697 ssh_err = (int)(libssh2_session_last_error(sshc->ssh_session, in ssh_statemachine()
2752 sshc->ssh_channel = libssh2_scp_recv(sshc->ssh_session, in ssh_statemachine()
2757 sshc->ssh_channel = libssh2_scp_recv2(sshc->ssh_session, in ssh_statemachine()
2765 if(libssh2_session_last_errno(sshc->ssh_session) == in ssh_statemachine()
2772 ssh_err = (int)(libssh2_session_last_error(sshc->ssh_session, in ssh_statemachine()
2817 (void)libssh2_session_last_error(sshc->ssh_session, in ssh_statemachine()
2834 (void)libssh2_session_last_error(sshc->ssh_session, in ssh_statemachine()
2850 (void)libssh2_session_last_error(sshc->ssh_session, in ssh_statemachine()
2866 (void)libssh2_session_last_error(sshc->ssh_session, in ssh_statemachine()
2892 (void)libssh2_session_last_error(sshc->ssh_session, in ssh_statemachine()
2900 if(sshc->ssh_session) { in ssh_statemachine()
2901 rc = libssh2_session_disconnect(sshc->ssh_session, "Shutdown"); in ssh_statemachine()
2907 (void)libssh2_session_last_error(sshc->ssh_session, in ssh_statemachine()
2936 (void)libssh2_session_last_error(sshc->ssh_session, in ssh_statemachine()
2951 if(sshc->ssh_session) { in ssh_statemachine()
2952 rc = libssh2_session_free(sshc->ssh_session); in ssh_statemachine()
2958 (void)libssh2_session_last_error(sshc->ssh_session, in ssh_statemachine()
2962 sshc->ssh_session = NULL; in ssh_statemachine()
2967 DEBUGASSERT(sshc->ssh_session == NULL); in ssh_statemachine()
3047 dir = libssh2_session_block_directions(sshc->ssh_session); in ssh_block2waitfor()
3118 int dir = libssh2_session_block_directions(sshc->ssh_session); in ssh_block_statemach()
3244 sshc->ssh_session = libssh2_session_init_ex(my_libssh2_malloc, in ssh_connect()
3248 if(!sshc->ssh_session) { in ssh_connect()
3256 libssh2_session_set_read_timeout(sshc->ssh_session, in ssh_connect()
3277 libssh2_session_callback_set2(sshc->ssh_session, in ssh_connect()
3280 libssh2_session_callback_set2(sshc->ssh_session, in ssh_connect()
3304 libssh2_session_callback_set(sshc->ssh_session, in ssh_connect()
3306 libssh2_session_callback_set(sshc->ssh_session, in ssh_connect()
3328 if(libssh2_session_flag(sshc->ssh_session, LIBSSH2_FLAG_COMPRESS, 1) < 0) in ssh_connect()
3336 sshc->kh = libssh2_knownhost_init(sshc->ssh_session); in ssh_connect()
3338 libssh2_session_free(sshc->ssh_session); in ssh_connect()
3339 sshc->ssh_session = NULL; in ssh_connect()
3354 libssh2_trace(sshc->ssh_session, ~0); in ssh_connect()
3457 if(sshc->ssh_session) { in scp_disconnect()
3612 if(sshc->ssh_session) { in sftp_disconnect()
3793 if(sshc->ssh_session) { in ssh_attach()
3795 void **abstract = libssh2_session_abstract(sshc->ssh_session); in ssh_attach()