Lines Matching refs:ssh_session
520 const char *remotekey = libssh2_session_hostkey(sshc->ssh_session,
665 libssh2_session_set_blocking(sshc->ssh_session, 0);
671 rc = libssh2_session_startup(sshc->ssh_session, sock);
694 fingerprint = libssh2_hostkey_hash(sshc->ssh_session,
711 host_public_key_md5 = libssh2_hostkey_hash(sshc->ssh_session,
743 sshc->authlist = libssh2_userauth_list(sshc->ssh_session,
748 if((err = libssh2_session_last_errno(sshc->ssh_session)) ==
836 rc = libssh2_userauth_publickey_fromfile_ex(sshc->ssh_session,
858 (void)libssh2_session_last_error(sshc->ssh_session,
876 rc = libssh2_userauth_password_ex(sshc->ssh_session, conn->user,
920 rc = libssh2_userauth_keyboard_interactive_ex(sshc->ssh_session,
965 sshc->sftp_session = libssh2_sftp_init(sshc->ssh_session);
967 if(libssh2_session_last_errno(sshc->ssh_session) ==
975 (void)libssh2_session_last_error(sshc->ssh_session,
1526 rc = libssh2_session_last_errno(sshc->ssh_session);
1718 if(libssh2_session_last_errno(sshc->ssh_session) ==
1842 libssh2_session_last_errno(sshc->ssh_session));
1946 if(libssh2_session_last_errno(sshc->ssh_session) ==
2180 SCP_SEND(sshc->ssh_session, sftp_scp->path, data->set.new_file_perms,
2183 if(libssh2_session_last_errno(sshc->ssh_session) ==
2192 ssh_err = (int)(libssh2_session_last_error(sshc->ssh_session,
2235 sshc->ssh_channel = libssh2_scp_recv(sshc->ssh_session,
2238 if(libssh2_session_last_errno(sshc->ssh_session) ==
2247 ssh_err = (int)(libssh2_session_last_error(sshc->ssh_session,
2358 if(sshc->ssh_session) {
2359 rc = libssh2_session_disconnect(sshc->ssh_session, "Shutdown");
2383 if(sshc->ssh_session) {
2384 rc = libssh2_session_free(sshc->ssh_session);
2391 sshc->ssh_session = NULL;
2396 DEBUGASSERT(sshc->ssh_session == NULL);
2510 else if((dir = libssh2_session_block_directions(sshc->ssh_session))) {
2572 int dir = libssh2_session_block_directions(sshc->ssh_session);
2664 ssh->ssh_session = libssh2_session_init_ex(my_libssh2_malloc,
2667 if(ssh->ssh_session == NULL) {
2675 ssh->kh = libssh2_knownhost_init(ssh->ssh_session);
2677 /* eeek. TODO: free the ssh_session! */
2692 libssh2_trace(ssh->ssh_session, ~0);
2814 if(ssh->ssh_session) {
2982 if(conn->proto.sshc.ssh_session) {