Compare commits

..

3 Commits

Author SHA1 Message Date
Aris Adamantiadis
ce9be6dfca Fix underflow when leave_function() are unbalanced 2010-01-26 14:42:49 +01:00
Andreas Schneider
5c3ea09e02 Fixed SSH1 support. 2009-09-24 12:58:35 +02:00
Andreas Schneider
9a571d0f25 Fixed build with mingw. 2009-09-15 10:41:36 +02:00
4 changed files with 4 additions and 5 deletions

View File

@@ -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];
};

View File

@@ -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 */

View File

@@ -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>

View File

@@ -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);
}