diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2010-12-18 16:31:01 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2010-12-18 16:31:12 +0100 |
commit | 5932f41fccf168253c30fdca4f53055a20cdba63 (patch) | |
tree | f783622ffaef2196e9043b3ddead8492da087040 /src/libtls/tls_crypto.c | |
parent | ae09bc62bc481b347593532db49dfe6a281f4225 (diff) | |
download | strongswan-5932f41fccf168253c30fdca4f53055a20cdba63.tar.bz2 strongswan-5932f41fccf168253c30fdca4f53055a20cdba63.tar.xz |
trace back crypto algorithms to the plugins that registered them
Diffstat (limited to 'src/libtls/tls_crypto.c')
-rw-r--r-- | src/libtls/tls_crypto.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libtls/tls_crypto.c b/src/libtls/tls_crypto.c index 78f2a796d..7b013e035 100644 --- a/src/libtls/tls_crypto.c +++ b/src/libtls/tls_crypto.c @@ -626,6 +626,7 @@ static void filter_suite(private_tls_crypto_t *this, suite_algs_t suites[], int *count, int offset, enumerator_t*(*create_enumerator)(crypto_factory_t*)) { + const char *plugin_name; suite_algs_t current; int i, remaining = 0; enumerator_t *enumerator; @@ -634,7 +635,8 @@ static void filter_suite(private_tls_crypto_t *this, for (i = 0; i < *count; i++) { enumerator = create_enumerator(lib->crypto); - while (enumerator->enumerate(enumerator, ((char*)¤t) + offset)) + while (enumerator->enumerate(enumerator, ((char*)¤t) + offset), + &plugin_name) { if ((suites[i].encr == ENCR_NULL || !current.encr || current.encr == suites[i].encr) && @@ -1060,10 +1062,11 @@ METHOD(tls_crypto_t, get_signature_algorithms, void, enumerator_t *enumerator; hash_algorithm_t alg; tls_hash_algorithm_t hash; + const char *plugin_name; supported = tls_writer_create(32); enumerator = lib->crypto->create_hasher_enumerator(lib->crypto); - while (enumerator->enumerate(enumerator, &alg)) + while (enumerator->enumerate(enumerator, &alg, &plugin_name)) { switch (alg) { |