Lines Matching defs:ssh_conn
131 struct ssh_conn { struct
132 const char *authlist; /* List of auth. methods, managed by libssh2 */
135 const char *passphrase; /* pass-phrase to use */
136 char *rsa_pub; /* strdup'ed public key file */
137 char *rsa; /* strdup'ed private key file */
138 bool authed; /* the connection has been authenticated fine */
139 bool acceptfail; /* used by the SFTP_QUOTE (continue if
141 sshstate state; /* always use ssh.c:state() to change state! */
142 sshstate nextstate; /* the state to goto after stopping */
143 CURLcode actualcode; /* the actual error code */
144 struct curl_slist *quote_item; /* for the quote option */
145 char *quote_path1; /* two generic pointers for the QUOTE stuff */
146 char *quote_path2;
148 char *homedir; /* when doing SFTP we figure out home dir in the
152 int secondCreateDirs; /* counter use by the code to see if the
155 int orig_waitfor; /* default READ/WRITE bits wait for */
156 char *slash_pos; /* used by the SFTP_CREATE_DIRS state */
159 char *readdir_linkPath;
160 size_t readdir_len;
161 struct dynbuf readdir_buf;
163 unsigned kbd_state; /* 0 or 1 */
164 ssh_key privkey;
165 ssh_key pubkey;
166 int auth_methods;
167 ssh_session ssh_session;
168 ssh_scp scp_session;
169 sftp_session sftp_session;
170 sftp_file sftp_file;
171 sftp_dir sftp_dir;
173 unsigned sftp_recv_state; /* 0 or 1 */
174 int sftp_file_index; /* for async read */
175 sftp_attributes readdir_attrs; /* used by the SFTP readdir actions */
176 sftp_attributes readdir_link_attrs; /* used by the SFTP readdir actions */
177 sftp_attributes quote_attrs; /* used by the SFTP_QUOTE state */
179 const char *readdir_filename; /* points within readdir_attrs */
180 const char *readdir_longentry;
181 char *readdir_tmp;
183 LIBSSH2_SESSION *ssh_session; /* Secure Shell session */
184 LIBSSH2_CHANNEL *ssh_channel; /* Secure Shell channel handle */
185 LIBSSH2_SFTP *sftp_session; /* SFTP handle */
186 LIBSSH2_SFTP_HANDLE *sftp_handle;
190 Curl_recv *tls_recv;
191 Curl_send *tls_send;
195 LIBSSH2_AGENT *ssh_agent; /* proxy to ssh-agent/pageant */
196 struct libssh2_agent_publickey *sshagent_identity,
197 *sshagent_prev_identity;
203 LIBSSH2_KNOWNHOSTS *kh;
206 WOLFSSH *ssh_session;
207 WOLFSSH_CTX *ctx;
208 word32 handleSz;
209 byte handle[WOLFSSH_MAX_HANDLE];
210 curl_off_t offset;