aboutsummaryrefslogtreecommitdiff
path: root/libssh/auth1.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-07-29 16:02:52 +0200
committerAndreas Schneider <mail@cynapses.org>2009-07-29 16:02:52 +0200
commit6f47401173340665e25872bef0b87cedd9812602 (patch)
treee0c25e7379793101943b7aca57fff80fd6a6a1af /libssh/auth1.c
parentd247b86202f68170de6b5c2fb4e73ed16a621ed3 (diff)
downloadlibssh-6f47401173340665e25872bef0b87cedd9812602.tar.gz
libssh-6f47401173340665e25872bef0b87cedd9812602.tar.xz
libssh-6f47401173340665e25872bef0b87cedd9812602.zip
Fix SSH1 compilation.
Diffstat (limited to 'libssh/auth1.c')
-rw-r--r--libssh/auth1.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libssh/auth1.c b/libssh/auth1.c
index cf24ae17..2b9e66df 100644
--- a/libssh/auth1.c
+++ b/libssh/auth1.c
@@ -27,7 +27,7 @@
#include "libssh/priv.h"
#include "libssh/ssh1.h"
-#ifdef HAVE_SSH1
+#ifdef WITH_SSH1
static int wait_auth1_status(SSH_SESSION *session) {
/* wait for a packet */
if (packet_read(session) != SSH_OK) {
@@ -138,7 +138,11 @@ int ssh_userauth_offer_pubkey(SSH_SESSION *session, char *username,int type, STR
*/
int ssh_userauth1_offer_pubkey(SSH_SESSION *session, const char *username,
int type, STRING *pubkey) {
- return SSH_AUTH_DENIED;
+ (void) session;
+ (void) username;
+ (void) type;
+ (void) pubkey;
+ return SSH_AUTH_DENIED;
}
/*
@@ -247,5 +251,5 @@ int ssh_userauth1_password(SSH_SESSION *session, const char *username,
return wait_auth1_status(session);
}
-#endif /* HAVE_SSH1 */
+#endif /* WITH_SSH1 */
/* vim: set ts=2 sw=2 et cindent: */