aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_crypto.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2010-09-02 19:24:56 +0200
committerMartin Willi <martin@revosec.ch>2010-09-02 19:33:08 +0200
commit35d9c15d5edd43a40ba182c3a1393c5d97a0c3da (patch)
tree50192956c4248a81e70192ae2919208ff59672e6 /src/libtls/tls_crypto.h
parent08d8b9405baa0cf55ee525a86a2680d823f347d0 (diff)
downloadstrongswan-35d9c15d5edd43a40ba182c3a1393c5d97a0c3da.tar.bz2
strongswan-35d9c15d5edd43a40ba182c3a1393c5d97a0c3da.tar.xz
Store a MODP group we use for each TLS suite
Diffstat (limited to 'src/libtls/tls_crypto.h')
-rw-r--r--src/libtls/tls_crypto.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libtls/tls_crypto.h b/src/libtls/tls_crypto.h
index 833928a8a..a4a4d446d 100644
--- a/src/libtls/tls_crypto.h
+++ b/src/libtls/tls_crypto.h
@@ -329,6 +329,13 @@ struct tls_crypto_t {
tls_cipher_suite_t *suites, int count);
/**
+ * Get the Diffie-Hellman group to use, if any.
+ *
+ * @return Diffie Hellman group, ord MODP_NONE
+ */
+ diffie_hellman_group_t (*get_dh_group)(tls_crypto_t *this);
+
+ /**
* Write the list of supported hash/sig algorithms to writer.
*
* @param writer writer to write supported hash/sig algorithms