Commit 1391f5e5 authored by Pavel Vainerman's avatar Pavel Vainerman

build fixes

parent e6e05d87
...@@ -43,6 +43,7 @@ confdir="" ...@@ -43,6 +43,7 @@ confdir=""
[ -r "/etc/ssh/ssh_config" ] && confdir="/ssh" [ -r "/etc/ssh/ssh_config" ] && confdir="/ssh"
[ -r "/etc/ssh_config" ] && confdir="/" [ -r "/etc/ssh_config" ] && confdir="/"
%__subst "s|-DSSHDIR=\\\\\"\$(sysconfdir)\\\\\"|-DSSHDIR=\\\\\"\$(sysconfdir)${confdir}\\\\\"|g" Makefile.in %__subst "s|-DSSHDIR=\\\\\"\$(sysconfdir)\\\\\"|-DSSHDIR=\\\\\"\$(sysconfdir)${confdir}\\\\\"|g" Makefile.in
%__subst "s|\[ #include <stdio.h> \]|\[ #include <stdlib.h> \]|g" configure.ac
%autoreconf %autoreconf
%configure --without-zlib-version-check %{subst_with kerberos5} %configure --without-zlib-version-check %{subst_with kerberos5}
......
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
#include "authfile.h" #include "authfile.h"
#include "ssherr.h" #include "ssherr.h"
#include "authfd.h" #include "authfd.h"
#include "uuencode.h"
#define PANIC #define PANIC
#define WARNING #define WARNING
...@@ -562,7 +563,7 @@ ssh_webproxy_connect(const char *proxy_host, u_short proxy_port, const char *pro ...@@ -562,7 +563,7 @@ ssh_webproxy_connect(const char *proxy_host, u_short proxy_port, const char *pro
} }
if (timeout_connect(sock, ai->ai_addr, ai->ai_addrlen, if (timeout_connect(sock, ai->ai_addr, ai->ai_addrlen,
options.connection_timeout) >= 0) &options.connection_timeout) >= 0)
{ {
/* Successful connection. */ /* Successful connection. */
memcpy(hostaddr, ai->ai_addr, ai->ai_addrlen); memcpy(hostaddr, ai->ai_addr, ai->ai_addrlen);
......
...@@ -393,7 +393,7 @@ Authmethod nxauthmethods_pubkey[] = { ...@@ -393,7 +393,7 @@ Authmethod nxauthmethods_pubkey[] = {
#endif #endif
{"publickey", {"publickey",
userauth_pubkey, userauth_pubkey,
&options.pubkey_authentication, (void (*)(struct cauthctxt *))&options.pubkey_authentication,
NULL}, NULL},
{"none", {"none",
userauth_none, userauth_none,
...@@ -405,11 +405,11 @@ Authmethod nxauthmethods_pubkey[] = { ...@@ -405,11 +405,11 @@ Authmethod nxauthmethods_pubkey[] = {
Authmethod nxauthmethods_passwords[] = { Authmethod nxauthmethods_passwords[] = {
{"keyboard-interactive", {"keyboard-interactive",
userauth_kbdint, userauth_kbdint,
&options.kbd_interactive_authentication, (void (*)(struct cauthctxt *))&options.kbd_interactive_authentication,
&options.batch_mode}, &options.batch_mode},
{"password", {"password",
userauth_passwd, userauth_passwd,
&options.password_authentication, (void (*)(struct cauthctxt *))&options.password_authentication,
&options.batch_mode}, &options.batch_mode},
{"none", {"none",
userauth_none, userauth_none,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment