From: Andreas Steffen Date: Tue, 15 Oct 2019 21:04:56 +0000 (+0200) Subject: stroke: List drbgs in list_algs X-Git-Tag: 5.8.2dr1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea41f759b3eb5ee756993fb607ac052f97015cc8;p=thirdparty%2Fstrongswan.git stroke: List drbgs in list_algs --- diff --git a/src/libcharon/plugins/stroke/stroke_list.c b/src/libcharon/plugins/stroke/stroke_list.c index d7671481d8..92b18a8a67 100644 --- a/src/libcharon/plugins/stroke/stroke_list.c +++ b/src/libcharon/plugins/stroke/stroke_list.c @@ -849,6 +849,7 @@ static void list_algs(FILE *out) hash_algorithm_t hash; pseudo_random_function_t prf; ext_out_function_t xof; + drbg_type_t drbg; diffie_hellman_group_t group; rng_quality_t quality; const char *plugin_name; @@ -904,6 +905,14 @@ static void list_algs(FILE *out) print_alg(out, &len, ext_out_function_names, xof, plugin_name); } enumerator->destroy(enumerator); + fprintf(out, "\n drbg: "); + len = 13; + enumerator = lib->crypto->create_drbg_enumerator(lib->crypto); + while (enumerator->enumerate(enumerator, &drbg, &plugin_name)) + { + print_alg(out, &len, drbg_type_names, drbg, plugin_name); + } + enumerator->destroy(enumerator); fprintf(out, "\n dh-group: "); len = 13; enumerator = lib->crypto->create_dh_enumerator(lib->crypto);