mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 18:50:27 +09:00
Compare commits
3 Commits
release-0-
...
v0-3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce9be6dfca | ||
|
|
5c3ea09e02 | ||
|
|
9a571d0f25 |
@@ -238,7 +238,7 @@ typedef struct signature_struct {
|
|||||||
|
|
||||||
struct error_struct {
|
struct error_struct {
|
||||||
/* error handling */
|
/* error handling */
|
||||||
int error_code;
|
unsigned int error_code;
|
||||||
char error_buffer[ERROR_BUFFERLEN];
|
char error_buffer[ERROR_BUFFERLEN];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -246,7 +246,6 @@ socket_t ssh_connect_host(SSH_SESSION *session, const char *host,
|
|||||||
ssh_set_error(session, SSH_FATAL, "Connect failed: %s", strerror(errno));
|
ssh_set_error(session, SSH_FATAL, "Connect failed: %s", strerror(errno));
|
||||||
close(s);
|
close(s);
|
||||||
s = -1;
|
s = -1;
|
||||||
leave_function();
|
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
/* We are connected */
|
/* We are connected */
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define _WIN32_IE 0x0400 //SHGetSpecialFolderPath
|
#define _WIN32_IE 0x0501 //SHGetSpecialFolderPath
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
|
|||||||
@@ -502,7 +502,7 @@ error:
|
|||||||
return rc; /* SSH_OK, AGAIN or ERROR */
|
return rc; /* SSH_OK, AGAIN or ERROR */
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_SSH1
|
#ifdef WITH_SSH1
|
||||||
static int packet_send1(SSH_SESSION *session) {
|
static int packet_send1(SSH_SESSION *session) {
|
||||||
unsigned int blocksize = (session->current_crypto ?
|
unsigned int blocksize = (session->current_crypto ?
|
||||||
session->current_crypto->out_cipher->blocksize : 8);
|
session->current_crypto->out_cipher->blocksize : 8);
|
||||||
@@ -583,7 +583,7 @@ error:
|
|||||||
#endif /* WITH_SSH1 */
|
#endif /* WITH_SSH1 */
|
||||||
|
|
||||||
int packet_send(SSH_SESSION *session) {
|
int packet_send(SSH_SESSION *session) {
|
||||||
#ifdef HAVE_SSH1
|
#ifdef WITH_SSH1
|
||||||
if (session->version == 1) {
|
if (session->version == 1) {
|
||||||
return packet_send1(session);
|
return packet_send1(session);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user