summaryrefslogtreecommitdiffstats
path: root/packet.h
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2015-01-19 20:30:23 +0000
committerDamien Miller <djm@mindrot.org>2015-01-20 09:23:46 +1100
commitf582f0e917bb0017b00944783cd5f408bf4b0b5e (patch)
tree4f5642958dd85b4b81937498dc47d79cba91d67b /packet.h
parent48b3b2ba75181f11fca7f327058a591f4426cade (diff)
upstream commit
add experimental api for packet layer; ok djm@
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/packet.h b/packet.h
index d9b56c30..069af2ea 100644
--- a/packet.h
+++ b/packet.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.h,v 1.63 2015/01/19 20:07:45 markus Exp $ */
+/* $OpenBSD: packet.h,v 1.64 2015/01/19 20:30:23 markus Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -34,6 +34,11 @@ struct session_state; /* private session data */
#include "dispatch.h" /* typedef, DISPATCH_MAX */
+struct key_entry {
+ TAILQ_ENTRY(key_entry) next;
+ struct sshkey *key;
+};
+
struct ssh {
/* Session state */
struct session_state *state;
@@ -52,6 +57,13 @@ struct ssh {
/* datafellows */
int compat;
+
+ /* Lists for private and public keys */
+ TAILQ_HEAD(, key_entry) private_keys;
+ TAILQ_HEAD(, key_entry) public_keys;
+
+ /* APP data */
+ void *app_data;
};
struct ssh *ssh_alloc_session_state(void);