|
From: Andreas S. <and...@st...> - 2014-12-31 06:16:49
|
Oops, I've just taken a closer look at the parse_validation_uri() code I wrote in May and saw that the colon character ':' must be included (e.g. "sha1:") but the following terminating nul character, too. Regards, Andreas On 31.12.2014 06:59, Andreas Steffen wrote: > - Hash the algorithm name without the ":" separator but > include the terminating nul character in your hash (see line 236 > of the strongSwan source code). > > Also have a look at the strongSwan parse_validation_uri() function > > https://wiki.strongswan.org/projects/strongswan/repository/revisions/master/entry/src/libimcv/pts/components/ita/ita_comp_ima.c#L465 > > which parses the string <hash algorithm>:<event name> into its two > components. > ====================================================================== Andreas Steffen and...@st... strongSwan - the Open Source VPN Solution! www.strongswan.org Institute for Internet Technologies and Applications University of Applied Sciences Rapperswil CH-8640 Rapperswil (Switzerland) ===========================================================[ITA-HSR]== |