proposal_t.strip_dh() takes a DH group to keep, using MODP_NONE will remove all

This commit is contained in:
Tobias Brunner
2012-10-24 16:09:42 +02:00
parent e74f184cb4
commit 4eba7269b8
3 changed files with 15 additions and 6 deletions
+3 -1
View File
@@ -111,8 +111,10 @@ struct proposal_t {
/**
* Strip DH groups from proposal to use it without PFS.
*
* @param keep group to keep (MODP_NONE to remove all)
*/
void (*strip_dh)(proposal_t *this);
void (*strip_dh)(proposal_t *this, diffie_hellman_group_t keep);
/**
* Compare two proposal, and select a matching subset.