proposal: Add possibility to register custom proposal keyword parser
authorThomas Egerer <thomas.egerer@secunet.com>
Fri, 29 Nov 2013 12:17:30 +0000 (13:17 +0100)
committerMartin Willi <martin@revosec.ch>
Mon, 20 Jan 2014 15:40:34 +0000 (16:40 +0100)
commit568e3022607a98394c53bc5a4922d368d19cbe60
tree8b8b0a635787c727d0b58ecc27336ad84caeff8c
parent303ec3956c1aefec7378dde9706595768522b09a
proposal: Add possibility to register custom proposal keyword parser

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@secunet.com>
src/libstrongswan/crypto/proposal/proposal_keywords.c
src/libstrongswan/crypto/proposal/proposal_keywords.h