aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-04-14 17:33:02 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-04-14 17:33:02 +0000
commitf9e0dc3e02dd0f1013ca5d385d3625dfd01b4dd9 (patch)
treefa34057c8a484a968adb60d61cf67f643b7beca7
parent4390abeb94d7d15821602bcd27f53620417ab4b2 (diff)
downloadstrongswan-f9e0dc3e02dd0f1013ca5d385d3625dfd01b4dd9.tar.bz2
strongswan-f9e0dc3e02dd0f1013ca5d385d3625dfd01b4dd9.tar.xz
added listaacerts, listacerts, listgroups, rereadaacerts, and rereadacerts keywords
-rw-r--r--src/stroke/stroke.c5
-rw-r--r--src/stroke/stroke.h22
-rw-r--r--src/stroke/stroke_keywords.h5
-rw-r--r--src/stroke/stroke_keywords.txt5
4 files changed, 31 insertions, 6 deletions
diff --git a/src/stroke/stroke.c b/src/stroke/stroke.c
index 5d3fd6e77..cd2e85caa 100644
--- a/src/stroke/stroke.c
+++ b/src/stroke/stroke.c
@@ -218,6 +218,9 @@ static int list_flags[] = {
LIST_CERTS,
LIST_CACERTS,
LIST_OCSPCERTS,
+ LIST_AACERTS,
+ LIST_ACERTS,
+ LIST_GROUPS,
LIST_CAINFOS,
LIST_CRLS,
LIST_OCSP,
@@ -238,6 +241,8 @@ static int list(stroke_keyword_t kw, int utc)
static int reread_flags[] = {
REREAD_CACERTS,
REREAD_OCSPCERTS,
+ REREAD_AACERTS,
+ REREAD_ACERTS,
REREAD_CRLS,
REREAD_ALL
};
diff --git a/src/stroke/stroke.h b/src/stroke/stroke.h
index 2eefb36c4..9cdc29f58 100644
--- a/src/stroke/stroke.h
+++ b/src/stroke/stroke.h
@@ -47,14 +47,20 @@ enum list_flag_t {
LIST_CACERTS = 0x0002,
/** list all ocsp signer certs */
LIST_OCSPCERTS = 0x0004,
+ /** list all aa certs */
+ LIST_AACERTS = 0x0008,
+ /** list all attribute certs */
+ LIST_ACERTS = 0x0010,
+ /** list all access control groups */
+ LIST_GROUPS = 0x0020,
/** list all ca information records */
- LIST_CAINFOS = 0x0008,
+ LIST_CAINFOS = 0x0040,
/** list all crls */
- LIST_CRLS = 0x0010,
+ LIST_CRLS = 0x0080,
/** list all ocsp cache entries */
- LIST_OCSP = 0x0020,
+ LIST_OCSP = 0x0100,
/** all list options */
- LIST_ALL = 0x003F,
+ LIST_ALL = 0x01FF,
};
typedef enum reread_flag_t reread_flag_t;
@@ -70,10 +76,14 @@ enum reread_flag_t {
REREAD_CACERTS = 0x0001,
/** reread all ocsp signer certs */
REREAD_OCSPCERTS = 0x0002,
+ /** reread all aa certs */
+ REREAD_AACERTS = 0x0004,
+ /** reread all attribute certs */
+ REREAD_ACERTS = 0x0008,
/** reread all crls */
- REREAD_CRLS = 0x0004,
+ REREAD_CRLS = 0x0010,
/** all reread options */
- REREAD_ALL = 0x0007,
+ REREAD_ALL = 0x001F,
};
typedef enum purge_flag_t purge_flag_t;
diff --git a/src/stroke/stroke_keywords.h b/src/stroke/stroke_keywords.h
index 2e7d7c385..2b4b40e52 100644
--- a/src/stroke/stroke_keywords.h
+++ b/src/stroke/stroke_keywords.h
@@ -32,12 +32,17 @@ typedef enum {
STROKE_LIST_CERTS,
STROKE_LIST_CACERTS,
STROKE_LIST_OCSPCERTS,
+ STROKE_LIST_AACERTS,
+ STROKE_LIST_ACERTS,
+ STROKE_LIST_GROUPS,
STROKE_LIST_CAINFOS,
STROKE_LIST_CRLS,
STROKE_LIST_OCSP,
STROKE_LIST_ALL,
STROKE_REREAD_CACERTS,
STROKE_REREAD_OCSPCERTS,
+ STROKE_REREAD_AACERTS,
+ STROKE_REREAD_ACERTS,
STROKE_REREAD_CRLS,
STROKE_REREAD_ALL,
STROKE_PURGE_OCSP
diff --git a/src/stroke/stroke_keywords.txt b/src/stroke/stroke_keywords.txt
index 1e8afe19e..962b4c555 100644
--- a/src/stroke/stroke_keywords.txt
+++ b/src/stroke/stroke_keywords.txt
@@ -39,12 +39,17 @@ statusall, STROKE_STATUSALL
listcerts, STROKE_LIST_CERTS
listcacerts, STROKE_LIST_CACERTS
listocspcerts, STROKE_LIST_OCSPCERTS
+listaacerts, STROKE_LIST_AACERTS
+listacerts, STROKE_LIST_ACERTS
+listgroups, STROKE_LIST_GROUPS
listcainfos, STROKE_LIST_CAINFOS
listcrls, STROKE_LIST_CRLS
listocsp, STROKE_LIST_OCSP
listall, STROKE_LIST_ALL
rereadcacerts, STROKE_REREAD_CACERTS
rereadocspcerts, STROKE_REREAD_OCSPCERTS
+rereadaacerts, STROKE_REREAD_AACERTS,
+rereadacerts, STROKE_REREAD_ACERTS,
rereadcrls, STROKE_REREAD_CRLS
rereadall, STROKE_REREAD_ALL
purgeocsp, STROKE_PURGE_OCSP