From: Michael Rash Date: Tue, 10 Jul 2012 12:30:11 +0000 (-0400) Subject: Merge from master minor bug fix to include default encryption mode X-Git-Tag: fwknop-2.5-pre1~266^2~1 X-Git-Url: http://www.cipherdyne.com/cgi-bin/gitweb.cgi?p=fwknop.git;a=commitdiff_plain;h=7145cdd8a154d086ec3879edfe2d2fcf3cbae64e Merge from master minor bug fix to include default encryption mode When getting raw digest for replay attack detection specify the default encryption mode (which doesn't actually get used when passing a NULL key). --- diff --git a/server/incoming_spa.c b/server/incoming_spa.c index 254990e..6ec08a1 100644 --- a/server/incoming_spa.c +++ b/server/incoming_spa.c @@ -122,7 +122,7 @@ get_raw_digest(char **digest, char *pkt_data) /* initialize an FKO context with no decryption key just so * we can get the outer message digest */ - res = fko_new_with_data(&ctx, (char *)pkt_data, NULL); + res = fko_new_with_data(&ctx, (char *)pkt_data, NULL, FKO_DEFAULT_ENC_MODE); if(res != FKO_SUCCESS) { log_msg(LOG_WARNING, "Error initializing FKO context from SPA data: %s",