Added a stroke command to export cached x509 certificates to the console

This commit is contained in:
Martin Willi
2010-08-10 18:46:30 +02:00
parent a944d2092b
commit 3d711a68fb
5 changed files with 80 additions and 2 deletions
+18
View File
@@ -109,6 +109,16 @@ enum purge_flag_t {
PURGE_IKE = 0x0002,
};
typedef enum export_flag_t export_flag_t;
/**
* Definition of the export flags
*/
enum export_flag_t {
/** export an X509 certificate */
EXPORT_X509 = 0x0001,
};
/**
* CRL certificate validation policy
*/
@@ -193,6 +203,8 @@ struct stroke_msg_t {
STR_PURGE,
/* show pool leases */
STR_LEASES,
/* export credentials */
STR_EXPORT,
/* more to come */
} type;
@@ -301,6 +313,12 @@ struct stroke_msg_t {
purge_flag_t flags;
} purge;
/* data for STR_EXPORT */
struct {
export_flag_t flags;
char *selector;
} export;
/* data for STR_LEASES */
struct {
char *pool;