comparison auth.h @ 547:cf376c696dfc agent-client

Make it compile, update for changes in channel structure.
author Matt Johnston <matt@ucc.asn.au>
date Wed, 01 Jul 2009 04:53:17 +0000
parents 568638be7203
children c3f2ec71e3d4
comparison
equal deleted inserted replaced
546:568638be7203 547:cf376c696dfc
24 24
25 #ifndef _AUTH_H_ 25 #ifndef _AUTH_H_
26 #define _AUTH_H_ 26 #define _AUTH_H_
27 27
28 #include "includes.h" 28 #include "includes.h"
29 #include "signkey.h"
29 #include "chansession.h" 30 #include "chansession.h"
30 31
31 void svr_authinitialise(); 32 void svr_authinitialise();
32 void cli_authinitialise(); 33 void cli_authinitialise();
33 34
122 #endif 123 #endif
123 124
124 }; 125 };
125 126
126 /* Sources for signing keys */ 127 /* Sources for signing keys */
127 #define SIGNKEY_SOURCE_RAW_FILE 1 128 typedef enum {
128 #define SIGNKEY_SOURCE_AGENT 21 129 SIGNKEY_SOURCE_RAW_FILE,
130 SIGNKEY_SOURCE_AGENT,
131 } signkey_source;
129 132
130 struct SignKeyList; 133 struct SignKeyList;
131 /* A singly linked list of signing keys */ 134 /* A singly linked list of signing keys */
132 struct SignKeyList { 135 struct SignKeyList {
133 136
134 sign_key *key; 137 sign_key *key;
135 int type; /* The type of key */ 138 int type; /* The type of key */
136 struct SignKeyList *next; 139 struct SignKeyList *next;
137 int source; 140 signkey_source source;
138 char *filename; 141 char *filename;
139 /* the buffer? for encrypted keys, so we can later get 142 /* the buffer? for encrypted keys, so we can later get
140 * the private key portion */ 143 * the private key portion */
141 144
142 }; 145 };