1
1
Этот коммит содержится в:
Dan Fandrich 2014-02-18 23:46:25 +01:00
родитель adc5db29e3
Коммит c00efa5f93
8 изменённых файлов: 17 добавлений и 17 удалений

Просмотреть файл

@ -699,7 +699,7 @@ libssh2_agent_list_identities(LIBSSH2_AGENT *agent)
* libssh2_agent_get_identity() * libssh2_agent_get_identity()
* *
* Traverse the internal list of public keys. Pass NULL to 'prev' to get * Traverse the internal list of public keys. Pass NULL to 'prev' to get
* the first one. Or pass a poiner to the previously returned one to get the * the first one. Or pass a pointer to the previously returned one to get the
* next. * next.
* *
* Returns: * Returns:

Просмотреть файл

@ -451,7 +451,7 @@ channel_forward_listen(LIBSSH2_SESSION * session, const char *host,
LIBSSH2_ALLOC(session, session->fwdLstn_packet_len); LIBSSH2_ALLOC(session, session->fwdLstn_packet_len);
if (!session->fwdLstn_packet) { if (!session->fwdLstn_packet) {
_libssh2_error(session, LIBSSH2_ERROR_ALLOC, _libssh2_error(session, LIBSSH2_ERROR_ALLOC,
"Unable to allocate memeory for setenv packet"); "Unable to allocate memory for setenv packet");
return NULL; return NULL;
} }
@ -616,7 +616,7 @@ int _libssh2_channel_forward_cancel(LIBSSH2_LISTENER *listener)
s = packet = LIBSSH2_ALLOC(session, packet_len); s = packet = LIBSSH2_ALLOC(session, packet_len);
if (!packet) { if (!packet) {
_libssh2_error(session, LIBSSH2_ERROR_ALLOC, _libssh2_error(session, LIBSSH2_ERROR_ALLOC,
"Unable to allocate memeory for setenv packet"); "Unable to allocate memory for setenv packet");
return LIBSSH2_ERROR_ALLOC; return LIBSSH2_ERROR_ALLOC;
} }
@ -788,7 +788,7 @@ static int channel_setenv(LIBSSH2_CHANNEL *channel,
LIBSSH2_ALLOC(session, channel->setenv_packet_len); LIBSSH2_ALLOC(session, channel->setenv_packet_len);
if (!channel->setenv_packet) { if (!channel->setenv_packet) {
return _libssh2_error(session, LIBSSH2_ERROR_ALLOC, return _libssh2_error(session, LIBSSH2_ERROR_ALLOC,
"Unable to allocate memeory " "Unable to allocate memory "
"for setenv packet"); "for setenv packet");
} }
@ -2574,7 +2574,7 @@ libssh2_channel_window_read_ex(LIBSSH2_CHANNEL *channel,
* libssh2_channel_window_write_ex * libssh2_channel_window_write_ex
* *
* Check the status of the write window Returns the number of bytes which may * Check the status of the write window Returns the number of bytes which may
* be safely writen on the channel without blocking window_size_initial (if * be safely written on the channel without blocking window_size_initial (if
* passed) will be populated with the size of the initial window as defined by * passed) will be populated with the size of the initial window as defined by
* the channel_open request * the channel_open request
*/ */

Просмотреть файл

@ -230,7 +230,7 @@ comp_method_zlib_decomp(LIBSSH2_SESSION * session,
/* If strm is null, then we have not yet been initialized. */ /* If strm is null, then we have not yet been initialized. */
if (strm == NULL) if (strm == NULL)
return _libssh2_error(session, LIBSSH2_ERROR_COMPRESS, return _libssh2_error(session, LIBSSH2_ERROR_COMPRESS,
"decompression unitilized");; "decompression uninitialized");;
/* In practice they never come smaller than this */ /* In practice they never come smaller than this */
if (out_maxlen < 25) if (out_maxlen < 25)

Просмотреть файл

@ -133,7 +133,7 @@ shell_quotearg(const char *path, unsigned char *buf,
* Processing States: * Processing States:
* UQSTRING: unquoted string: ... -- used for quoting exclamation * UQSTRING: unquoted string: ... -- used for quoting exclamation
* marks. This is the initial state * marks. This is the initial state
* SQSTRING: single-qouted-string: '... -- any character may follow * SQSTRING: single-quoted-string: '... -- any character may follow
* QSTRING: quoted string: "... -- only apostrophes may follow * QSTRING: quoted string: "... -- only apostrophes may follow
*/ */
enum { UQSTRING, SQSTRING, QSTRING } state = UQSTRING; enum { UQSTRING, SQSTRING, QSTRING } state = UQSTRING;

Просмотреть файл

@ -686,7 +686,7 @@ session_startup(LIBSSH2_SESSION *session, libssh2_socket_t sock)
!get_socket_nonblocking(session->socket_fd); !get_socket_nonblocking(session->socket_fd);
if (session->socket_prev_blockstate) { if (session->socket_prev_blockstate) {
/* If in blocking state chang to non-blocking */ /* If in blocking state change to non-blocking */
session_nonblock(session->socket_fd, 1); session_nonblock(session->socket_fd, 1);
} }
@ -1522,7 +1522,7 @@ libssh2_poll(LIBSSH2_POLLFD * fds, unsigned int nfds, long timeout)
} }
#else #else
/* No select() or poll() /* No select() or poll()
* no sockets sturcture to setup * no sockets structure to setup
*/ */
timeout = 0; timeout = 0;

Просмотреть файл

@ -535,7 +535,7 @@ sftp_packet_require(LIBSSH2_SFTP *sftp, unsigned char packet_type,
} }
/* sftp_packet_requirev /* sftp_packet_requirev
* Require one of N possible reponses * Require one of N possible responses
*/ */
static int static int
sftp_packet_requirev(LIBSSH2_SFTP *sftp, int num_valid_responses, sftp_packet_requirev(LIBSSH2_SFTP *sftp, int num_valid_responses,
@ -721,7 +721,7 @@ static LIBSSH2_SFTP *sftp_init(LIBSSH2_SESSION *session)
* *
* Note that you MUST NOT try to call libssh2_sftp_init() again to get * Note that you MUST NOT try to call libssh2_sftp_init() again to get
* another handle until the previous call has finished and either * another handle until the previous call has finished and either
* succesffully made a handle or failed and returned error (not * successfully made a handle or failed and returned error (not
* including *EAGAIN). * including *EAGAIN).
*/ */
@ -858,7 +858,7 @@ static LIBSSH2_SFTP *sftp_init(LIBSSH2_SESSION *session)
sftp_handle->version = LIBSSH2_SFTP_VERSION; sftp_handle->version = LIBSSH2_SFTP_VERSION;
} }
_libssh2_debug(session, LIBSSH2_TRACE_SFTP, _libssh2_debug(session, LIBSSH2_TRACE_SFTP,
"Enabling SFTP version %lu compatability", "Enabling SFTP version %lu compatibility",
sftp_handle->version); sftp_handle->version);
while (s < (data + data_len)) { while (s < (data + data_len)) {
size_t extname_len, extdata_len; size_t extname_len, extdata_len;
@ -929,7 +929,7 @@ LIBSSH2_API LIBSSH2_SFTP *libssh2_sftp_init(LIBSSH2_SESSION *session)
/* /*
* sftp_shutdown * sftp_shutdown
* *
* Shutsdown the SFTP subsystem * Shuts down the SFTP subsystem
*/ */
static int static int
sftp_shutdown(LIBSSH2_SFTP *sftp) sftp_shutdown(LIBSSH2_SFTP *sftp)
@ -1960,7 +1960,7 @@ static ssize_t sftp_write(LIBSSH2_SFTP_HANDLE *handle, const char *buffer,
/* flush all pending packets from the outgoing list */ /* flush all pending packets from the outgoing list */
sftp_packetlist_flush(handle); sftp_packetlist_flush(handle);
/* since we return error now, the applicaton will not get any /* since we return error now, the application will not get any
outstanding data acked, so we need to rewind the offset to outstanding data acked, so we need to rewind the offset to
where the application knows it has reached with acked data */ where the application knows it has reached with acked data */
handle->u.file.offset -= handle->u.file.acked; handle->u.file.offset -= handle->u.file.acked;

Просмотреть файл

@ -536,7 +536,7 @@ int _libssh2_transport_read(LIBSSH2_SESSION * session)
p->readidx += numdecrypt; p->readidx += numdecrypt;
/* advance write pointer */ /* advance write pointer */
p->wptr += numdecrypt; p->wptr += numdecrypt;
/* increse data_num */ /* increase data_num */
p->data_num += numdecrypt; p->data_num += numdecrypt;
/* bytes left to take care of without decryption */ /* bytes left to take care of without decryption */
@ -552,7 +552,7 @@ int _libssh2_transport_read(LIBSSH2_SESSION * session)
p->readidx += numbytes; p->readidx += numbytes;
/* advance write pointer */ /* advance write pointer */
p->wptr += numbytes; p->wptr += numbytes;
/* increse data_num */ /* increase data_num */
p->data_num += numbytes; p->data_num += numbytes;
} }

Просмотреть файл

@ -211,7 +211,7 @@ userauth_password(LIBSSH2_SESSION *session,
sizeof(session->userauth_pswd_packet_requirev_state)); sizeof(session->userauth_pswd_packet_requirev_state));
/* /*
* 40 = acket_type(1) + username_len(4) + service_len(4) + * 40 = packet_type(1) + username_len(4) + service_len(4) +
* service(14)"ssh-connection" + method_len(4) + method(8)"password" + * service(14)"ssh-connection" + method_len(4) + method(8)"password" +
* chgpwdbool(1) + password_len(4) */ * chgpwdbool(1) + password_len(4) */
session->userauth_pswd_data_len = username_len + 40; session->userauth_pswd_data_len = username_len + 40;