comparison signkey.h @ 641:2b1bb792cd4d dropbear-tfm

- Update tfm changes to current default tip
author Matt Johnston <matt@ucc.asn.au>
date Mon, 21 Nov 2011 19:52:28 +0800
parents b50f0107e505
children f336d232fc63
comparison
equal deleted inserted replaced
640:76097ec1a29a 641:2b1bb792cd4d
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 {
33 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 */
47
34 #ifdef DROPBEAR_DSS 48 #ifdef DROPBEAR_DSS
35 dss_key * dsskey; 49 dropbear_dss_key * dsskey;
36 #endif 50 #endif
37 #ifdef DROPBEAR_RSA 51 #ifdef DROPBEAR_RSA
38 rsa_key * rsakey; 52 dropbear_rsa_key * rsakey;
39 #endif 53 #endif
40 }; 54 };
41 55
42 typedef struct SIGN_key sign_key; 56 typedef struct SIGN_key sign_key;
43 57