comparison signkey.h @ 551:c3f2ec71e3d4 agent-client

New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList
author Matt Johnston <matt@ucc.asn.au>
date Mon, 06 Jul 2009 12:59:13 +0000
parents 7282370416a0
children b50f0107e505
comparison
equal deleted inserted replaced
550:61c3513825b0 551:c3f2ec71e3d4
27 27
28 #include "buffer.h" 28 #include "buffer.h"
29 #include "dss.h" 29 #include "dss.h"
30 #include "rsa.h" 30 #include "rsa.h"
31 31
32
33 /* Sources for signing keys */
34 typedef enum {
35 SIGNKEY_SOURCE_RAW_FILE,
36 SIGNKEY_SOURCE_AGENT,
37 SIGNKEY_SOURCE_INVALID,
38 } signkey_source;
39
32 struct SIGN_key { 40 struct SIGN_key {
41
42 int type; /* The type of key (dss or rsa) */
43 signkey_source source;
44 char *filename;
45 /* the buffer? for encrypted keys, so we can later get
46 * the private key portion */
33 47
34 #ifdef DROPBEAR_DSS 48 #ifdef DROPBEAR_DSS
35 dss_key * dsskey; 49 dss_key * dsskey;
36 #endif 50 #endif
37 #ifdef DROPBEAR_RSA 51 #ifdef DROPBEAR_RSA