mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 20:30:38 +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 {
|
||||
/* error handling */
|
||||
int error_code;
|
||||
unsigned int error_code;
|
||||
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));
|
||||
close(s);
|
||||
s = -1;
|
||||
leave_function();
|
||||
continue;
|
||||
} else {
|
||||
/* We are connected */
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define _WIN32_IE 0x0400 //SHGetSpecialFolderPath
|
||||
#define _WIN32_IE 0x0501 //SHGetSpecialFolderPath
|
||||
#include <shlobj.h>
|
||||
#include <winsock2.h>
|
||||
#include <direct.h>
|
||||
|
||||
@@ -502,7 +502,7 @@ error:
|
||||
return rc; /* SSH_OK, AGAIN or ERROR */
|
||||
}
|
||||
|
||||
#ifdef HAVE_SSH1
|
||||
#ifdef WITH_SSH1
|
||||
static int packet_send1(SSH_SESSION *session) {
|
||||
unsigned int blocksize = (session->current_crypto ?
|
||||
session->current_crypto->out_cipher->blocksize : 8);
|
||||
@@ -583,7 +583,7 @@ error:
|
||||
#endif /* WITH_SSH1 */
|
||||
|
||||
int packet_send(SSH_SESSION *session) {
|
||||
#ifdef HAVE_SSH1
|
||||
#ifdef WITH_SSH1
|
||||
if (session->version == 1) {
|
||||
return packet_send1(session);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user