[strongSwan-dev] [PATCH] proposal: Add possibility to register custom proposal keyword parser

Thomas Egerer thomas.egerer at secunet.com
Fri Nov 29 13:17:30 CET 2013

If a proposal string cannot be matched to a token using strcmp (e.g. if
you want to register a whole class of algorithms containing their ID,
like my_alg_2342), you can use the provided function to register a
parser that transforms the given string into a proposal token.

Signed-off-by: Thomas Egerer <thomas.egerer at secunet.com>
Hello strongswan-developers,

I was wondering if I could get this patch upstream. It is particularly
helpful to deal with private proposal strings. They are comprised of a
prefix followed by their private ID. Since none of the given mechanisms
(static keywords, nor keyword registration) allows my to parse a whole
class of algorithm names like described, I would rather use a user
provided parser. What do you think? Any suggestions on how to get this
upstream are appreciated.


 .../crypto/proposal/proposal_keywords.c            | 47 +++++++++++++++++++++-
 .../crypto/proposal/proposal_keywords.h            | 11 +++++
 2 files changed, 57 insertions(+), 1 deletion(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-proposal-Add-possibility-to-register-custom-proposal.patch
Type: text/x-patch
Size: 3682 bytes
Desc: not available
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20131129/fe5682c3/attachment.bin>

More information about the Dev mailing list