Use a dynamic curve enumerator to list/convert TLS named curves

This commit is contained in:
Martin Willi
2010-09-03 17:24:23 +02:00
parent f4c98ae664
commit 3f7bb88ba3
4 changed files with 135 additions and 74 deletions
+5 -3
View File
@@ -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.