From: Andreas Steffen Date: Tue, 15 Oct 2019 20:30:40 +0000 (+0200) Subject: vici: List drbgs in get_algorithms X-Git-Tag: 5.8.2dr1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c738704ab68c88450aab41892f3c23d2b2251f74;p=thirdparty%2Fstrongswan.git vici: List drbgs in get_algorithms --- diff --git a/src/libcharon/plugins/vici/vici_query.c b/src/libcharon/plugins/vici/vici_query.c index 346ffb548f..0b300a318c 100644 --- a/src/libcharon/plugins/vici/vici_query.c +++ b/src/libcharon/plugins/vici/vici_query.c @@ -1231,6 +1231,7 @@ CALLBACK(get_algorithms, vici_message_t*, 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; @@ -1291,6 +1292,15 @@ CALLBACK(get_algorithms, vici_message_t*, enumerator->destroy(enumerator); b->end_section(b); + b->begin_section(b, "drbg"); + enumerator = lib->crypto->create_drbg_enumerator(lib->crypto); + while (enumerator->enumerate(enumerator, &drbg, &plugin_name)) + { + add_algorithm(b, drbg_type_names, drbg, plugin_name); + } + enumerator->destroy(enumerator); + b->end_section(b); + b->begin_section(b, "dh"); enumerator = lib->crypto->create_dh_enumerator(lib->crypto); while (enumerator->enumerate(enumerator, &group, &plugin_name))