Added a stroke command to export cached x509 certificates to the console
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user