Home | History | Annotate | Download | only in lib

Lines Matching defs:to

14  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 * copies of the Software, and permit persons to whom the Software is
16 * furnished to do so, under the terms of the COPYING file.
143 curl_socket_t *sock, /* points to numsocks number
148 curl_socket_t *sock, /* points to numsocks
299 /* TODO: map some more of the libssh2 errors to the more appropriate CURLcode
328 /* This is the ONLY way to change SSH state! */
393 infof(conn->data, "SFTP %p state change from %s to %s\n",
401 /* figure out the path to work with in this particular request */
405 real path to work with */
417 /* Check for /~/ , indicating relative to the user's home directory */
425 /* It is referenced to the home directory, so strip the leading '/~/' */
438 /* It is referenced to the home directory, so strip the
460 /* store the pointer for the caller to receive */
484 * Earlier libssh2 versions didn't have the ability to seek to 64bit positions
519 /* we're asked to verify the host against a file */
531 * A subject to figure out is what host name we need to pass in here.
587 * curl_khmatch enum are ever modified, we need to introduce a
592 /* Ask the callback how to behave */
615 /* the found host+key didn't match but has been told to be fine
627 /* now we write the entire in-memory list of known hosts to the
660 /* The fingerprint points to static storage (!), don't free() it. */
674 "Remote %s is not equal to %s", md5buffer, pubkey_md5);
695 * to will be set to TRUE if the libssh2 function returns LIBSSH2_ERROR_EAGAIN
696 * meaning it wants to be called again when the socket is ready
720 /* Set libssh2 to non-blocking, since everything internally is
746 * whatever) is up to us.
757 * NB: As soon as we have provided a username to an openssh server we
760 * possible to get a 'generic' list (not user-specific) of authentication
807 /* To ponder about: should really the lib be messing about with the
838 /* Out of guesses. Set to the empty string to avoid
883 /* The function below checks if the files exists, no need to stat() here.
960 /* Connect to the ssh-agent */
977 infof(data, "Failure connecting to agent\n");
996 infof(data, "Failure requesting identities to agent\n");
1023 /* tried and failed? go to next identity */
1031 infof(data, "Failure requesting identities to agent\n");
1207 can, the command will be allowed to fail without it causing any
1208 aborts or cancels etc. It will cause libcurl to act as if the command
1230 /* this sends an FTP-like "header" to the header callback so that the
1231 current directory can be read very similar to how it is read when
1276 * to the server. Instead, we scan for commands used by
1285 /* sshc->quote_path1 contains the mode to set */
1399 can, the command will be allowed to fail without it causing any
1400 aborts or cancels etc. It will cause libcurl to act as if the command
1409 /* Since chown and chgrp only set owner OR group but libssh2 wants to
1410 * set them both at once, we need to obtain the current ownership
1424 failf(data, "Attempt to get SFTP stats failed: %s",
1495 failf(data, "Attempt to set SFTP stats failed: %s",
1653 /* Try to open for append, but create if nonexisting */
1694 /* try to create the path remotely */
1705 to work around that! */
1716 /* If we have a restart point then we need to seek to the correct
1731 /* seekerr == CURL_SEEKFUNC_CANTSEEK (can't seek to offset) */
1745 /* this checks for greater-than only to make sure that the
1747 failf(data, "Failed to read data");
1770 /* not set by Curl_setup_transfer to preserve keepon bits */
1778 /* store this original bitmask setup to use later on if we can't
1782 /* we want to use the _sending_ function even when the socket turns
1788 state machine to move on as soon as possible so we set a very short
1822 /* 'mode' - parameter is preliminary - default to 0644 */
1858 * This is a directory that we are trying to get, so produce a directory
1927 /* since this counts what we send to the client, we include the
2064 /* no data to transfer */
2128 curl_off_t from, to;
2135 to=curlx_strtoofft(ptr, &ptr2, 0);
2136 if((ptr == ptr2) /* no "to" value given */
2137 || (to >= size)) {
2138 to = size - 1;
2141 /* from is relative to end of file */
2150 if(from > to) {
2151 from = to;
2155 size = to - from + 1;
2165 /* We can resume if we can seek to the resume position */
2168 /* We're supposed to download the last abs(from) bytes */
2187 /* Does a completed file need to be seeked and started or closed ? */
2188 /* Now store the number of bytes we are expected to download */
2199 /* no data to transfer */
2209 /* not set by Curl_setup_transfer to preserve keepon bits */
2212 /* we want to use the _receiving_ function even when the socket turns
2235 infof(data, "Failed to close libssh2 file\n");
2245 After nextstate is executed, the control should come back to
2246 SSH_SFTP_CLOSE to pass the correct result back */
2259 /* during times we get here due to a broken transfer and then the
2269 infof(data, "Failed to close libssh2 file\n");
2279 infof(data, "Failed to stop libssh2 sftp subsystem\n");
2345 /* not set by Curl_setup_transfer to preserve keepon bits */
2353 /* store this original bitmask setup to use later on if we can't
2357 /* we want to use the _sending_ function even when the socket turns
2405 /* not set by Curl_setup_transfer to preserve keepon bits */
2408 /* we want to use the _receiving_ function even when the socket turns
2436 infof(data, "Failed to send libssh2 channel EOF\n");
2449 infof(data, "Failed to get channel EOF: %d\n", rc);
2462 infof(data, "Channel failed to close: %d\n", rc);
2475 infof(data, "Failed to free libssh2 scp subsystem\n");
2497 infof(data, "Failed to free libssh2 scp subsystem\n");
2508 infof(data, "Failed to disconnect libssh2 session\n");
2533 infof(data, "Failed to disconnect from libssh2 agent\n");
2538 /* NB: there is no need to free identities, they are part of internal
2551 infof(data, "Failed to free libssh2 session\n");
2582 /* the code we are about to return */
2605 /* we would block, we need to wait for the socket to be ready (in the
2613 /* called by the multi interface to figure out what socket(s) to wait for and
2616 curl_socket_t *sock, /* points to numsocks
2640 /* Generic function called by the multi interface to figure out what socket(s)
2641 to wait for and for what actions during the DOING and PROTOCONNECT states*/
2643 curl_socket_t *sock, /* points to numsocks number
2651 /* if we don't know any direction we can just play along as we used to and
2664 * function is used to figure out in what direction and stores this info so
2665 * that the multi interface can take advantage of it. Make sure to call this
2693 bool block; /* we store the status and use that to provide a ssh_getsock()
2743 /* wait for the socket to become ready */
2772 * Curl_ssh_connect() gets called from Curl_protocol_connect() to allow us to
2788 /* We default to persistent connections. We set this already in this connect
2789 function to make the re-use checks properly be able to check this bit. */
2834 infof(data, "Failed to read known hosts from %s\n",
2856 * This is the actual DO function for SCP. Get a file according to
2911 *done = FALSE; /* default to false */
2944 /* only if there's a session still around to use! */
3053 * This is the actual DO function for SFTP. Get a file/directory according to
3108 /* only if there's a session still around to use! */
3125 /* Post quote commands are executed after the SFTP_CLOSE state to avoid
3126 errors that could happen due to open file handles during POSTQUOTE
3142 ssize_t nwrite; /* libssh2_sftp_write() used to return size_t in 0.14
3143 but is changed to ssize_t in 0.15. These days we don't
3193 * Permission to use, copy, modify, and distribute this software for any
3198 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
3258 /* Read to end of filename */
3291 return "Not connected to SFTP server";
3294 return "Connection to SFTP server lost";
3336 return "Link points to itself";