summaryrefslogtreecommitdiffhomepage
path: root/signkey.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2009-07-06 12:59:13 +0000
committerMatt Johnston <matt@ucc.asn.au>2009-07-06 12:59:13 +0000
commitc742137dc8c8dd2163a2353d3382fdf2cae44c24 (patch)
tree25f52a38fb21d20051e2e44faa40ab25f45a5cad /signkey.h
parent9dc9aff0164ba777ae9806e9608af09aaf1a786e (diff)
New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList
--HG-- branch : agent-client extra : convert_revision : 5465e639cc3f5ee0c6c55f0de6e7b6d5a8769da3
Diffstat (limited to 'signkey.h')
-rw-r--r--signkey.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/signkey.h b/signkey.h
index 4038b2d..9bcbfc9 100644
--- a/signkey.h
+++ b/signkey.h
@@ -29,8 +29,22 @@
#include "dss.h"
#include "rsa.h"
+
+/* Sources for signing keys */
+typedef enum {
+ SIGNKEY_SOURCE_RAW_FILE,
+ SIGNKEY_SOURCE_AGENT,
+ SIGNKEY_SOURCE_INVALID,
+} signkey_source;
+
struct SIGN_key {
+ int type; /* The type of key (dss or rsa) */
+ signkey_source source;
+ char *filename;
+ /* the buffer? for encrypted keys, so we can later get
+ * the private key portion */
+
#ifdef DROPBEAR_DSS
dss_key * dsskey;
#endif