summaryrefslogtreecommitdiffhomepage
path: root/auth.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2009-07-01 04:53:17 +0000
committerMatt Johnston <matt@ucc.asn.au>2009-07-01 04:53:17 +0000
commitc6582dbe370705270e6164ff8212dbdddafd9250 (patch)
tree16995bf01183b34461fd95df3f96000a5d3f2547 /auth.h
parent709a3e75cfb242c1b7165e599a4ccc54198967ca (diff)
Make it compile, update for changes in channel structure.
--HG-- branch : agent-client extra : convert_revision : 84676a98a0848224078a716b1292744a34e9d80c
Diffstat (limited to 'auth.h')
-rw-r--r--auth.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/auth.h b/auth.h
index 55efeef..a35416c 100644
--- a/auth.h
+++ b/auth.h
@@ -26,6 +26,7 @@
#define _AUTH_H_
#include "includes.h"
+#include "signkey.h"
#include "chansession.h"
void svr_authinitialise();
@@ -124,8 +125,10 @@ struct AuthState {
};
/* Sources for signing keys */
-#define SIGNKEY_SOURCE_RAW_FILE 1
-#define SIGNKEY_SOURCE_AGENT 21
+typedef enum {
+ SIGNKEY_SOURCE_RAW_FILE,
+ SIGNKEY_SOURCE_AGENT,
+} signkey_source;
struct SignKeyList;
/* A singly linked list of signing keys */
@@ -134,7 +137,7 @@ struct SignKeyList {
sign_key *key;
int type; /* The type of key */
struct SignKeyList *next;
- int source;
+ signkey_source source;
char *filename;
/* the buffer? for encrypted keys, so we can later get
* the private key portion */