aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libssh/client.c1
-rw-r--r--libssh/config.c4
-rw-r--r--libssh/misc.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/libssh/client.c b/libssh/client.c
index d8ff6850..0d34a8b3 100644
--- a/libssh/client.c
+++ b/libssh/client.c
@@ -390,7 +390,6 @@ error:
static int dh_handshake(ssh_session session) {
ssh_string e = NULL;
ssh_string f = NULL;
- ssh_string pubkey = NULL;
ssh_string signature = NULL;
int rc = SSH_ERROR;
diff --git a/libssh/config.c b/libssh/config.c
index ae794bdc..375ed715 100644
--- a/libssh/config.c
+++ b/libssh/config.c
@@ -27,6 +27,7 @@
#include "libssh/priv.h"
#include "libssh/session.h"
+#include "libssh/misc.h"
enum ssh_config_opcode_e {
SOC_UNSUPPORTED = -1,
@@ -158,6 +159,7 @@ static int ssh_config_parse_line(ssh_session session, const char *line,
const char *p;
char *s, *x;
char *keyword;
+ char *lowerhost;
size_t len;
int i;
@@ -187,7 +189,7 @@ static int ssh_config_parse_line(ssh_session session, const char *line,
switch (opcode) {
case SOC_HOST:
*parsing = 0;
- char* lowerhost = (session->host) ? ssh_lowercase(session->host) : NULL;
+ lowerhost = (session->host) ? ssh_lowercase(session->host) : NULL;
for (p = ssh_config_get_str(&s, NULL); p && *p;
p = ssh_config_get_str(&s, NULL)) {
if (match_hostname(lowerhost, p, strlen(p))) {
diff --git a/libssh/misc.c b/libssh/misc.c
index 4489eb69..6ae391f9 100644
--- a/libssh/misc.c
+++ b/libssh/misc.c
@@ -30,7 +30,7 @@
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
-
+#include <ctype.h>
#ifdef _WIN32
#define _WIN32_IE 0x0501 //SHGetSpecialFolderPath