Added a listplugins stroke command to show plugin features

This commit is contained in:
Martin Willi
2011-10-14 10:05:44 +02:00
parent fa7c8338ca
commit 2d2ffa58f6
5 changed files with 62 additions and 1 deletions
+2
View File
@@ -263,6 +263,7 @@ static int list_flags[] = {
LIST_CRLS,
LIST_OCSP,
LIST_ALGS,
LIST_PLUGINS,
LIST_ALL
};
@@ -531,6 +532,7 @@ int main(int argc, char *argv[])
case STROKE_LIST_CRLS:
case STROKE_LIST_OCSP:
case STROKE_LIST_ALGS:
case STROKE_LIST_PLUGINS:
case STROKE_LIST_ALL:
res = list(token->kw, argc > 2 && strcmp(argv[2], "--utc") == 0);
break;
+1
View File
@@ -41,6 +41,7 @@ typedef enum {
STROKE_LIST_CRLS,
STROKE_LIST_OCSP,
STROKE_LIST_ALGS,
STROKE_LIST_PLUGINS,
STROKE_LIST_ALL,
STROKE_REREAD_SECRETS,
STROKE_REREAD_CACERTS,
+1
View File
@@ -48,6 +48,7 @@ listcainfos, STROKE_LIST_CAINFOS
listcrls, STROKE_LIST_CRLS
listocsp, STROKE_LIST_OCSP
listalgs, STROKE_LIST_ALGS
listplugins, STROKE_LIST_PLUGINS
listall, STROKE_LIST_ALL
rereadsecrets, STROKE_REREAD_SECRETS
rereadcacerts, STROKE_REREAD_CACERTS
+3 -1
View File
@@ -65,8 +65,10 @@ enum list_flag_t {
LIST_OCSP = 0x0200,
/** list all supported algorithms */
LIST_ALGS = 0x0400,
/** list plugin information */
LIST_PLUGINS = 0x0800,
/** all list options */
LIST_ALL = 0x07FF,
LIST_ALL = 0x0FFF,
};
typedef enum reread_flag_t reread_flag_t;