aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-12-26 20:24:07 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2009-12-26 20:24:07 +0100
commit682ed1812364bd42fef6f331486c5d8f5a72ef21 (patch)
tree592c5164a0cd93b1a0572f1cc3f3e229a7a1fec9 /include
parent3aae59c224ff682114fc6bc77462b939af54da5b (diff)
downloadlibssh-682ed1812364bd42fef6f331486c5d8f5a72ef21.tar.gz
libssh-682ed1812364bd42fef6f331486c5d8f5a72ef21.tar.xz
libssh-682ed1812364bd42fef6f331486c5d8f5a72ef21.zip
New packet handler for SSH_USERAUTH_BANNER
Diffstat (limited to 'include')
-rw-r--r--include/libssh/auth.h28
-rw-r--r--include/libssh/session.h2
2 files changed, 29 insertions, 1 deletions
diff --git a/include/libssh/auth.h b/include/libssh/auth.h
new file mode 100644
index 00000000..86b31ea4
--- /dev/null
+++ b/include/libssh/auth.h
@@ -0,0 +1,28 @@
+/*
+ * This file is part of the SSH Library
+ *
+ * Copyright (c) 2009 by Aris Adamantiadis
+ *
+ * The SSH Library is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or (at your
+ * option) any later version.
+ *
+ * The SSH Library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+ * License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with the SSH Library; see the file COPYING. If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA.
+ */
+
+#ifndef AUTH_H_
+#define AUTH_H_
+#include "libssh/callbacks.h"
+SSH_PACKET_CALLBACK(ssh_packet_userauth_banner);
+
+
+#endif /* AUTH_H_ */
diff --git a/include/libssh/session.h b/include/libssh/session.h
index 5cf5af5a..f4ed895c 100644
--- a/include/libssh/session.h
+++ b/include/libssh/session.h
@@ -29,7 +29,7 @@ typedef struct ssh_kbdint_struct* ssh_kbdint;
/* These are the different states a SSH session can be into its life */
enum ssh_session_state_e {
- SSH_SESSION_STATE_NONE,
+ SSH_SESSION_STATE_NONE=0,
SSH_SESSION_STATE_CONNECTING,
SSH_SESSION_STATE_SOCKET_CONNECTED,
SSH_SESSION_STATE_BANNER_RECEIVED,