List registered AEAD algorithms in listalgs
authorMartin Willi <martin@revosec.ch>
Wed, 18 Aug 2010 18:17:09 +0000 (20:17 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 19 Aug 2010 17:02:34 +0000 (19:02 +0200)
src/libcharon/plugins/stroke/stroke_list.c

index f4ffa94..bd89181 100644 (file)
@@ -1073,6 +1073,13 @@ static void list_algs(FILE *out)
                fprintf(out, "%N ", integrity_algorithm_names, integrity);
        }
        enumerator->destroy(enumerator);
+       fprintf(out, "\n  aead:       ");
+       enumerator = lib->crypto->create_aead_enumerator(lib->crypto);
+       while (enumerator->enumerate(enumerator, &encryption))
+       {
+               fprintf(out, "%N ", encryption_algorithm_names, encryption);
+       }
+       enumerator->destroy(enumerator);
        fprintf(out, "\n  hasher:     ");
        enumerator = lib->crypto->create_hasher_enumerator(lib->crypto);
        while (enumerator->enumerate(enumerator, &hash))