crypto_factory algorithm enumeration API
implementation of "ipsec listalgs"
This commit is contained in:
@@ -209,6 +209,7 @@ static int list_flags[] = {
|
||||
LIST_CAINFOS,
|
||||
LIST_CRLS,
|
||||
LIST_OCSP,
|
||||
LIST_ALGS,
|
||||
LIST_ALL
|
||||
};
|
||||
|
||||
@@ -308,6 +309,8 @@ static void exit_usage(char *error)
|
||||
printf(" stroke listcacerts|listocspcerts|listaacerts|listacerts\n");
|
||||
printf(" Show list of end entity certificates, ca info records and crls:\n");
|
||||
printf(" stroke listcerts|listcainfos|listcrls|listall\n");
|
||||
printf(" Show list of supported algorithms:\n");
|
||||
printf(" stroke listalgs\n");
|
||||
printf(" Reload authority and attribute certificates:\n");
|
||||
printf(" stroke rereadcacerts|rereadocspcerts|rereadaacerts|rereadacerts\n");
|
||||
printf(" Reload secrets and crls:\n");
|
||||
@@ -408,6 +411,7 @@ int main(int argc, char *argv[])
|
||||
case STROKE_LIST_CAINFOS:
|
||||
case STROKE_LIST_CRLS:
|
||||
case STROKE_LIST_OCSP:
|
||||
case STROKE_LIST_ALGS:
|
||||
case STROKE_LIST_ALL:
|
||||
res = list(token->kw, argc > 2 && strcmp(argv[2], "--utc") == 0);
|
||||
break;
|
||||
|
||||
@@ -39,6 +39,7 @@ typedef enum {
|
||||
STROKE_LIST_CAINFOS,
|
||||
STROKE_LIST_CRLS,
|
||||
STROKE_LIST_OCSP,
|
||||
STROKE_LIST_ALGS,
|
||||
STROKE_LIST_ALL,
|
||||
STROKE_REREAD_SECRETS,
|
||||
STROKE_REREAD_CACERTS,
|
||||
|
||||
@@ -46,6 +46,7 @@ listgroups, STROKE_LIST_GROUPS
|
||||
listcainfos, STROKE_LIST_CAINFOS
|
||||
listcrls, STROKE_LIST_CRLS
|
||||
listocsp, STROKE_LIST_OCSP
|
||||
listalgs, STROKE_LIST_ALGS
|
||||
listall, STROKE_LIST_ALL
|
||||
rereadsecrets, STROKE_REREAD_SECRETS
|
||||
rereadcacerts, STROKE_REREAD_CACERTS
|
||||
|
||||
@@ -61,8 +61,10 @@ enum list_flag_t {
|
||||
LIST_CRLS = 0x0080,
|
||||
/** list all ocsp cache entries */
|
||||
LIST_OCSP = 0x0100,
|
||||
/** list all supported algorithms */
|
||||
LIST_ALGS = 0x0200,
|
||||
/** all list options */
|
||||
LIST_ALL = 0x01FF,
|
||||
LIST_ALL = 0x03FF,
|
||||
};
|
||||
|
||||
typedef enum reread_flag_t reread_flag_t;
|
||||
|
||||
Reference in New Issue
Block a user