diff options
author | Martin Willi <martin@revosec.ch> | 2010-09-03 17:05:39 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-09-03 17:24:23 +0200 |
commit | 3f7bb88ba3ef1476ad70549488390e43b44025bf (patch) | |
tree | 572f4d66dde50123bacb861c6f55adac1846cf65 /src/libtls/tls_crypto.h | |
parent | f4c98ae664ed226b1dd7c0eaac17626b2df9e4ef (diff) | |
download | strongswan-3f7bb88ba3ef1476ad70549488390e43b44025bf.tar.bz2 strongswan-3f7bb88ba3ef1476ad70549488390e43b44025bf.tar.xz |
Use a dynamic curve enumerator to list/convert TLS named curves
Diffstat (limited to 'src/libtls/tls_crypto.h')
-rw-r--r-- | src/libtls/tls_crypto.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libtls/tls_crypto.h b/src/libtls/tls_crypto.h index b92af1bf6..cc83df300 100644 --- a/src/libtls/tls_crypto.h +++ b/src/libtls/tls_crypto.h @@ -398,11 +398,13 @@ struct tls_crypto_t { void (*get_signature_algorithms)(tls_crypto_t *this, tls_writer_t *writer); /** - * Write the list of supported elliptic curves to writer. + * Create an enumerator over supported ECDH groups. * - * @param writer writer to write elliptic curves to + * Enumerates over (diffie_hellman_group_t, tls_named_curve_t) + * + * @return enumerator */ - void (*get_curves)(tls_crypto_t *this, tls_writer_t *writer); + enumerator_t* (*create_ec_enumerator)(tls_crypto_t *this); /** * Set the protection layer of the TLS stack to control it. |