diff options
author | Martin Willi <martin@revosec.ch> | 2010-08-18 20:17:09 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-08-19 19:02:34 +0200 |
commit | 9d49f79f55c9f95b02dd6b5680b34feba313d312 (patch) | |
tree | 0150d2df5f31a37a1a039982a28c5f07e2f18010 | |
parent | 77b55e8a96ae985e13da9d267f1e455f5a3a0478 (diff) | |
download | strongswan-9d49f79f55c9f95b02dd6b5680b34feba313d312.tar.bz2 strongswan-9d49f79f55c9f95b02dd6b5680b34feba313d312.tar.xz |
List registered AEAD algorithms in listalgs
-rw-r--r-- | src/libcharon/plugins/stroke/stroke_list.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcharon/plugins/stroke/stroke_list.c b/src/libcharon/plugins/stroke/stroke_list.c index f4ffa94c9..bd891811d 100644 --- a/src/libcharon/plugins/stroke/stroke_list.c +++ b/src/libcharon/plugins/stroke/stroke_list.c @@ -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)) |