From: Martin Willi Date: Thu, 8 Feb 2007 13:54:42 +0000 (-0000) Subject: added support for NULL encryption in ESP X-Git-Tag: 4.0.7~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7995489a6d054a88964e462daecb9da4321111d5;p=thirdparty%2Fstrongswan.git added support for NULL encryption in ESP --- diff --git a/src/charon/config/proposal.c b/src/charon/config/proposal.c index ce7720d5a5..0faef3dad3 100644 --- a/src/charon/config/proposal.c +++ b/src/charon/config/proposal.c @@ -391,7 +391,11 @@ static proposal_t *clone_(private_proposal_t *this) static status_t add_string_algo(private_proposal_t *this, chunk_t alg) { - if (strncmp(alg.ptr, "aes128", alg.len) == 0) + if (strncmp(alg.ptr, "null", alg.len) == 0) + { + add_algorithm(this, ENCRYPTION_ALGORITHM, ENCR_NULL, 0); + } + else if (strncmp(alg.ptr, "aes128", alg.len) == 0) { add_algorithm(this, ENCRYPTION_ALGORITHM, ENCR_AES_CBC, 128); }