From 3f7bb88ba3ef1476ad70549488390e43b44025bf Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Fri, 3 Sep 2010 17:05:39 +0200 Subject: Use a dynamic curve enumerator to list/convert TLS named curves --- src/libtls/tls_crypto.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/libtls/tls_crypto.h') 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. -- cgit v1.2.3