mirror of
https://github.com/libssh2/libssh2.git
synced 2025-07-29 13:01:14 +03:00
@ -37,7 +37,7 @@ file `config.log' containing compiler output (useful mainly for
|
|||||||
debugging `configure').
|
debugging `configure').
|
||||||
|
|
||||||
It can also use an optional file (typically called `config.cache'
|
It can also use an optional file (typically called `config.cache'
|
||||||
and enabled with `--cache-file=config.cache' or simply `-C') that saves
|
and enabled with `--cache-file=config.cache' or shortly `-C') that saves
|
||||||
the results of its tests to speed up reconfiguring. (Caching is
|
the results of its tests to speed up reconfiguring. (Caching is
|
||||||
disabled by default to prevent problems with accidental use of stale
|
disabled by default to prevent problems with accidental use of stale
|
||||||
cache files.)
|
cache files.)
|
||||||
|
@ -30,7 +30,7 @@ truncated to fit.
|
|||||||
\fIlongentry_maxlen\fP bytes to read data into. The format of the `longname'
|
\fIlongentry_maxlen\fP bytes to read data into. The format of the `longname'
|
||||||
field is unspecified by SFTP protocol. It MUST be suitable for use in the
|
field is unspecified by SFTP protocol. It MUST be suitable for use in the
|
||||||
output of a directory listing command (in fact, the recommended operation for
|
output of a directory listing command (in fact, the recommended operation for
|
||||||
a directory listing command is to simply display this data).
|
a directory listing command is to display this data).
|
||||||
|
|
||||||
\fIlongentry_maxlen\fP - is the length of longentry in bytes. If the length of
|
\fIlongentry_maxlen\fP - is the length of longentry in bytes. If the length of
|
||||||
the full directory entry is longer than the space provided by
|
the full directory entry is longer than the space provided by
|
||||||
|
@ -21,8 +21,8 @@ Deprecated function. Use \fIlibssh2_sftp_seek64(3)\fP instead!
|
|||||||
Move the file handle's internal pointer to an arbitrary location.
|
Move the file handle's internal pointer to an arbitrary location.
|
||||||
Note that libssh2 implements file pointers as a localized concept to make
|
Note that libssh2 implements file pointers as a localized concept to make
|
||||||
file access appear more POSIX like. No packets are exchanged with the server
|
file access appear more POSIX like. No packets are exchanged with the server
|
||||||
during a seek operation. The localized file pointer is simply used as a
|
during a seek operation. The localized file pointer is used as a convenience
|
||||||
convenience offset during read/write operations.
|
offset during read/write operations.
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR libssh2_sftp_open_ex(3),
|
.BR libssh2_sftp_open_ex(3),
|
||||||
.BR libssh2_sftp_seek64(3)
|
.BR libssh2_sftp_seek64(3)
|
||||||
|
@ -19,8 +19,8 @@ libssh2_sftp_seek64(LIBSSH2_SFTP_HANDLE *handle,
|
|||||||
Move the file handle's internal pointer to an arbitrary location. libssh2
|
Move the file handle's internal pointer to an arbitrary location. libssh2
|
||||||
implements file pointers as a localized concept to make file access appear
|
implements file pointers as a localized concept to make file access appear
|
||||||
more POSIX like. No packets are exchanged with the server during a seek
|
more POSIX like. No packets are exchanged with the server during a seek
|
||||||
operation. The localized file pointer is simply used as a convenience offset
|
operation. The localized file pointer is used as a convenience offset during
|
||||||
during read/write operations.
|
read/write operations.
|
||||||
|
|
||||||
You MUST NOT seek during writing or reading a file with SFTP, as the internals
|
You MUST NOT seek during writing or reading a file with SFTP, as the internals
|
||||||
use outstanding packets and changing the "file position" during transit will
|
use outstanding packets and changing the "file position" during transit will
|
||||||
|
@ -56,8 +56,7 @@ otherwise block. While LIBSSH2_ERROR_EAGAIN is a negative number, it is not
|
|||||||
really a failure per se.
|
really a failure per se.
|
||||||
|
|
||||||
If this function returns 0 (zero) it should not be considered an error, but
|
If this function returns 0 (zero) it should not be considered an error, but
|
||||||
simply that there was no error but yet no payload data got sent to the other
|
that there was no error but yet no payload data got sent to the other end.
|
||||||
end.
|
|
||||||
.SH ERRORS
|
.SH ERRORS
|
||||||
\fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
|
\fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
|
||||||
|
|
||||||
|
@ -696,7 +696,7 @@ int _libssh2_transport_read(LIBSSH2_SESSION * session)
|
|||||||
numbytes -= numdecrypt;
|
numbytes -= numdecrypt;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if there are bytes to copy that aren't decrypted, simply
|
/* if there are bytes to copy that aren't decrypted,
|
||||||
copy them as-is to the target buffer */
|
copy them as-is to the target buffer */
|
||||||
if(numbytes > 0) {
|
if(numbytes > 0) {
|
||||||
|
|
||||||
|
@ -1475,9 +1475,8 @@ _libssh2_userauth_publickey(LIBSSH2_SESSION *session,
|
|||||||
session->userauth_pblc_method_len = _libssh2_ntohu32(pubkeydata);
|
session->userauth_pblc_method_len = _libssh2_ntohu32(pubkeydata);
|
||||||
|
|
||||||
if(session->userauth_pblc_method_len > pubkeydata_len - 4)
|
if(session->userauth_pblc_method_len > pubkeydata_len - 4)
|
||||||
/* the method length simply cannot be longer than the entire
|
/* the method length cannot be longer than the entire passed
|
||||||
passed in data, so we use this to detect crazy input
|
in data, so we use this to detect crazy input data */
|
||||||
data */
|
|
||||||
return _libssh2_error(session,
|
return _libssh2_error(session,
|
||||||
LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED,
|
LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED,
|
||||||
"Invalid public key");
|
"Invalid public key");
|
||||||
|
Reference in New Issue
Block a user