sftpfs_super 406 src/vfs/sftpfs/config_parser.c sftpfs_super_t *sftpfs_super = SFTP_SUPER (super); sftpfs_super 415 src/vfs/sftpfs/config_parser.c sftpfs_super->config_auth_type = (config_entity->pubkey_auth) ? PUBKEY : 0; sftpfs_super 416 src/vfs/sftpfs/config_parser.c sftpfs_super->config_auth_type |= (config_entity->identities_only) ? 0 : AGENT; sftpfs_super 417 src/vfs/sftpfs/config_parser.c sftpfs_super->config_auth_type |= (config_entity->password_auth) ? PASSWORD : 0; sftpfs_super 437 src/vfs/sftpfs/config_parser.c sftpfs_super->privkey = g_strdup (config_entity->identity_file); sftpfs_super 438 src/vfs/sftpfs/config_parser.c sftpfs_super->pubkey = g_strdup_printf ("%s.pub", config_entity->identity_file); sftpfs_super 133 src/vfs/sftpfs/connection.c sftpfs_super_t *sftpfs_super = SFTP_SUPER (super); sftpfs_super 189 src/vfs/sftpfs/connection.c sftpfs_super->ip_address = sftpfs_super 194 src/vfs/sftpfs/connection.c sftpfs_super->ip_address = sftpfs_super 199 src/vfs/sftpfs/connection.c sftpfs_super->ip_address = NULL; sftpfs_super 202 src/vfs/sftpfs/connection.c if (sftpfs_super->ip_address == NULL) sftpfs_super 265 src/vfs/sftpfs/connection.c sftpfs_super_t *sftpfs_super = SFTP_SUPER (super); sftpfs_super 270 src/vfs/sftpfs/connection.c sftpfs_super->known_hosts = libssh2_knownhost_init (sftpfs_super->session); sftpfs_super 271 src/vfs/sftpfs/connection.c if (sftpfs_super->known_hosts == NULL) sftpfs_super 274 src/vfs/sftpfs/connection.c sftpfs_super->known_hosts_file = sftpfs_super 277 src/vfs/sftpfs/connection.c if (!exist_file (sftpfs_super->known_hosts_file)) sftpfs_super 280 src/vfs/sftpfs/connection.c sftpfs_super->known_hosts_file, unix_error_string (errno)); sftpfs_super 284 src/vfs/sftpfs/connection.c rc = libssh2_knownhost_readfile (sftpfs_super->known_hosts, sftpfs_super->known_hosts_file, sftpfs_super 290 src/vfs/sftpfs/connection.c while (!found && libssh2_knownhost_get (sftpfs_super->known_hosts, &store, store) == 0) sftpfs_super 376 src/vfs/sftpfs/connection.c rc = libssh2_session_method_pref (sftpfs_super->session, LIBSSH2_METHOD_HOSTKEY, sftpfs_super 389 src/vfs/sftpfs/connection.c sftp_errno = libssh2_session_last_errno (sftpfs_super->session); sftpfs_super 390 src/vfs/sftpfs/connection.c sftpfs_ssherror_to_gliberror (sftpfs_super, sftp_errno, mcerror); sftpfs_super 412 src/vfs/sftpfs/connection.c sftpfs_super_t *sftpfs_super = SFTP_SUPER (super); sftpfs_super 416 src/vfs/sftpfs/connection.c rc = libssh2_knownhost_addc (sftpfs_super->known_hosts, super->path_element->host, NULL, sftpfs_super 422 src/vfs/sftpfs/connection.c rc = libssh2_knownhost_writefile (sftpfs_super->known_hosts, sftpfs_super->known_hosts_file, sftpfs_super 430 src/vfs/sftpfs/connection.c super->path_element->host, sftpfs_super->ip_address); sftpfs_super 477 src/vfs/sftpfs/connection.c sftpfs_super_t *sftpfs_super = SFTP_SUPER (super); sftpfs_super 489 src/vfs/sftpfs/connection.c remote_key = libssh2_session_hostkey (sftpfs_super->session, &remote_key_len, &remote_key_type); sftpfs_super 537 src/vfs/sftpfs/connection.c fingerprint_hash = sftpfs_compute_fingerprint_hash (sftpfs_super->session); sftpfs_super 545 src/vfs/sftpfs/connection.c sftpfs_super->known_hosts, super->path_element->host, super->path_element->port, remote_key, sftpfs_super 566 src/vfs/sftpfs/connection.c super->path_element->host, sftpfs_super->ip_address, key_type, fingerprint_hash); sftpfs_super 579 src/vfs/sftpfs/connection.c super->path_element->host, sftpfs_super->ip_address); sftpfs_super 615 src/vfs/sftpfs/connection.c sftp_errno = libssh2_session_last_errno (sftpfs_super->session); sftpfs_super 616 src/vfs/sftpfs/connection.c sftpfs_ssherror_to_gliberror (sftpfs_super, sftp_errno, mcerror); sftpfs_super 634 src/vfs/sftpfs/connection.c sftpfs_super_t *sftpfs_super = SFTP_SUPER (super); sftpfs_super 638 src/vfs/sftpfs/connection.c userauthlist = libssh2_userauth_list (sftpfs_super->session, super->path_element->user, sftpfs_super 646 src/vfs/sftpfs/connection.c && (sftpfs_super->config_auth_type & PASSWORD) != 0) sftpfs_super 647 src/vfs/sftpfs/connection.c sftpfs_super->auth_type |= PASSWORD; sftpfs_super 650 src/vfs/sftpfs/connection.c && (sftpfs_super->config_auth_type & PUBKEY) != 0) sftpfs_super 651 src/vfs/sftpfs/connection.c sftpfs_super->auth_type |= PUBKEY; sftpfs_super 653 src/vfs/sftpfs/connection.c if ((sftpfs_super->config_auth_type & AGENT) != 0) sftpfs_super 654 src/vfs/sftpfs/connection.c sftpfs_super->auth_type |= AGENT; sftpfs_super 671 src/vfs/sftpfs/connection.c sftpfs_super_t *sftpfs_super = SFTP_SUPER (super); sftpfs_super 677 src/vfs/sftpfs/connection.c sftpfs_super->agent = NULL; sftpfs_super 679 src/vfs/sftpfs/connection.c if ((sftpfs_super->auth_type & AGENT) == 0) sftpfs_super 683 src/vfs/sftpfs/connection.c sftpfs_super->agent = libssh2_agent_init (sftpfs_super->session); sftpfs_super 684 src/vfs/sftpfs/connection.c if (sftpfs_super->agent == NULL) sftpfs_super 687 src/vfs/sftpfs/connection.c if (libssh2_agent_connect (sftpfs_super->agent) != 0) sftpfs_super 690 src/vfs/sftpfs/connection.c if (libssh2_agent_list_identities (sftpfs_super->agent) != 0) sftpfs_super 695 src/vfs/sftpfs/connection.c rc = libssh2_agent_get_identity (sftpfs_super->agent, &identity, prev_identity); sftpfs_super 702 src/vfs/sftpfs/connection.c if (libssh2_agent_userauth (sftpfs_super->agent, super->path_element->user, identity) == 0) sftpfs_super 723 src/vfs/sftpfs/connection.c sftpfs_super_t *sftpfs_super = SFTP_SUPER (super); sftpfs_super 729 src/vfs/sftpfs/connection.c if ((sftpfs_super->auth_type & PUBKEY) == 0) sftpfs_super 732 src/vfs/sftpfs/connection.c if (sftpfs_super->privkey == NULL) sftpfs_super 735 src/vfs/sftpfs/connection.c if (libssh2_userauth_publickey_fromfile (sftpfs_super->session, super->path_element->user, sftpfs_super 736 src/vfs/sftpfs/connection.c sftpfs_super->pubkey, sftpfs_super->privkey, sftpfs_super 750 src/vfs/sftpfs/connection.c sftpfs_super->session, super->path_element->user, sftpfs_super->pubkey, sftpfs_super 751 src/vfs/sftpfs/connection.c sftpfs_super->privkey, passwd) sftpfs_super 815 src/vfs/sftpfs/connection.c sftpfs_super_t *sftpfs_super = SFTP_SUPER (super); sftpfs_super 822 src/vfs/sftpfs/connection.c if ((sftpfs_super->auth_type & PASSWORD) == 0) sftpfs_super 827 src/vfs/sftpfs/connection.c while ((rc = libssh2_userauth_password (sftpfs_super->session, super->path_element->user, sftpfs_super 837 src/vfs/sftpfs/connection.c while ((rc = libssh2_userauth_keyboard_interactive (sftpfs_super->session, sftpfs_super 858 src/vfs/sftpfs/connection.c while ((rc = libssh2_userauth_password (sftpfs_super->session, super->path_element->user, sftpfs_super 868 src/vfs/sftpfs/connection.c while ((rc = libssh2_userauth_keyboard_interactive (sftpfs_super->session, sftpfs_super 906 src/vfs/sftpfs/connection.c sftpfs_super_t *sftpfs_super = SFTP_SUPER (super); sftpfs_super 914 src/vfs/sftpfs/connection.c sftpfs_super->socket_handle = sftpfs_open_socket (super, mcerror); sftpfs_super 915 src/vfs/sftpfs/connection.c if (sftpfs_super->socket_handle == LIBSSH2_INVALID_SOCKET) sftpfs_super 919 src/vfs/sftpfs/connection.c sftpfs_super->session = libssh2_session_init (); sftpfs_super 920 src/vfs/sftpfs/connection.c if (sftpfs_super->session == NULL) sftpfs_super 929 src/vfs/sftpfs/connection.c while ((rc = libssh2_session_handshake (sftpfs_super->session, sftpfs_super 930 src/vfs/sftpfs/connection.c (libssh2_socket_t) sftpfs_super->socket_handle)) sftpfs_super 946 src/vfs/sftpfs/connection.c sftp_errno = libssh2_session_last_errno (sftpfs_super->session); sftpfs_super 947 src/vfs/sftpfs/connection.c sftpfs_ssherror_to_gliberror (sftpfs_super, sftp_errno, mcerror); sftpfs_super 956 src/vfs/sftpfs/connection.c sftpfs_super->sftp_session = libssh2_sftp_init (sftpfs_super->session); sftpfs_super 958 src/vfs/sftpfs/connection.c if (sftpfs_super->sftp_session == NULL) sftpfs_super 962 src/vfs/sftpfs/connection.c libssh2_session_set_blocking (sftpfs_super->session, 1); sftpfs_super 979 src/vfs/sftpfs/connection.c sftpfs_super_t *sftpfs_super = SFTP_SUPER (super); sftpfs_super 984 src/vfs/sftpfs/connection.c if (sftpfs_super->sftp_session != NULL) sftpfs_super 986 src/vfs/sftpfs/connection.c libssh2_sftp_shutdown (sftpfs_super->sftp_session); sftpfs_super 987 src/vfs/sftpfs/connection.c sftpfs_super->sftp_session = NULL; sftpfs_super 990 src/vfs/sftpfs/connection.c if (sftpfs_super->agent != NULL) sftpfs_super 992 src/vfs/sftpfs/connection.c libssh2_agent_disconnect (sftpfs_super->agent); sftpfs_super 993 src/vfs/sftpfs/connection.c libssh2_agent_free (sftpfs_super->agent); sftpfs_super 994 src/vfs/sftpfs/connection.c sftpfs_super->agent = NULL; sftpfs_super 997 src/vfs/sftpfs/connection.c if (sftpfs_super->known_hosts != NULL) sftpfs_super 999 src/vfs/sftpfs/connection.c libssh2_knownhost_free (sftpfs_super->known_hosts); sftpfs_super 1000 src/vfs/sftpfs/connection.c sftpfs_super->known_hosts = NULL; sftpfs_super 1003 src/vfs/sftpfs/connection.c MC_PTR_FREE (sftpfs_super->known_hosts_file); sftpfs_super 1005 src/vfs/sftpfs/connection.c if (sftpfs_super->session != NULL) sftpfs_super 1007 src/vfs/sftpfs/connection.c libssh2_session_disconnect (sftpfs_super->session, shutdown_message); sftpfs_super 1008 src/vfs/sftpfs/connection.c libssh2_session_free (sftpfs_super->session); sftpfs_super 1009 src/vfs/sftpfs/connection.c sftpfs_super->session = NULL; sftpfs_super 1012 src/vfs/sftpfs/connection.c if (sftpfs_super->socket_handle != LIBSSH2_INVALID_SOCKET) sftpfs_super 1014 src/vfs/sftpfs/connection.c close (sftpfs_super->socket_handle); sftpfs_super 1015 src/vfs/sftpfs/connection.c sftpfs_super->socket_handle = LIBSSH2_INVALID_SOCKET; sftpfs_super 69 src/vfs/sftpfs/dir.c sftpfs_super_t *sftpfs_super; sftpfs_super 74 src/vfs/sftpfs/dir.c if (!sftpfs_op_init (&sftpfs_super, &path_element, vpath, mcerror)) sftpfs_super 83 src/vfs/sftpfs/dir.c handle = libssh2_sftp_open_ex (sftpfs_super->sftp_session, fixfname->str, fixfname->len, 0, sftpfs_super 88 src/vfs/sftpfs/dir.c libssh_errno = libssh2_session_last_errno (sftpfs_super->session); sftpfs_super 89 src/vfs/sftpfs/dir.c if (!sftpfs_waitsocket (sftpfs_super, libssh_errno, mcerror)) sftpfs_super 95 src/vfs/sftpfs/dir.c sftpfs_dir->super = sftpfs_super; sftpfs_super 169 src/vfs/sftpfs/dir.c sftpfs_super_t *sftpfs_super; sftpfs_super 173 src/vfs/sftpfs/dir.c if (!sftpfs_op_init (&sftpfs_super, &path_element, vpath, mcerror)) sftpfs_super 181 src/vfs/sftpfs/dir.c libssh2_sftp_mkdir_ex (sftpfs_super->sftp_session, fixfname->str, fixfname->len, mode); sftpfs_super 185 src/vfs/sftpfs/dir.c if (!sftpfs_waitsocket (sftpfs_super, res, mcerror)) sftpfs_super 206 src/vfs/sftpfs/dir.c sftpfs_super_t *sftpfs_super; sftpfs_super 210 src/vfs/sftpfs/dir.c if (!sftpfs_op_init (&sftpfs_super, &path_element, vpath, mcerror)) sftpfs_super 217 src/vfs/sftpfs/dir.c res = libssh2_sftp_rmdir_ex (sftpfs_super->sftp_session, fixfname->str, fixfname->len); sftpfs_super 221 src/vfs/sftpfs/dir.c if (!sftpfs_waitsocket (sftpfs_super, res, mcerror)) sftpfs_super 231 src/vfs/sftpfs/file.c sftpfs_super_t *sftpfs_super = SFTP_SUPER (super); sftpfs_super 246 src/vfs/sftpfs/file.c err = sftpfs_file__handle_error (sftpfs_super, res, mcerror); sftpfs_super 733 src/vfs/sftpfs/sftpfs.c sftpfs_super_t *sftpfs_super = SFTP_SUPER (super); sftpfs_super 745 src/vfs/sftpfs/sftpfs.c sftpfs_super->original_connection_info = vfs_path_element_clone (vpath_element);