]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
vici: Report registered KDFs
authorTobias Brunner <tobias@strongswan.org>
Wed, 9 Feb 2022 15:20:00 +0000 (16:20 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 14 Apr 2022 16:54:24 +0000 (18:54 +0200)
src/libcharon/plugins/vici/vici_query.c

index ff2d36b21d4ee1abe9070667c7c36532328a6cd5..1b7778de831d82a182333e4b112e7192d18b4e11 100644 (file)
@@ -1303,6 +1303,7 @@ CALLBACK(get_algorithms, vici_message_t*,
        hash_algorithm_t hash;
        pseudo_random_function_t prf;
        ext_out_function_t xof;
+       key_derivation_function_t kdf;
        drbg_type_t drbg;
        diffie_hellman_group_t group;
        rng_quality_t quality;
@@ -1364,6 +1365,15 @@ CALLBACK(get_algorithms, vici_message_t*,
        enumerator->destroy(enumerator);
        b->end_section(b);
 
+       b->begin_section(b, "kdf");
+       enumerator = lib->crypto->create_kdf_enumerator(lib->crypto);
+       while (enumerator->enumerate(enumerator, &kdf, &plugin_name))
+       {
+               add_algorithm(b, key_derivation_function_names, kdf, plugin_name);
+       }
+       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))