added support for NULL encryption in ESP

This commit is contained in:
Martin Willi 2007-02-08 13:54:42 +00:00
parent eb9a3fd6f0
commit 7995489a6d
1 changed files with 5 additions and 1 deletions

View File

@ -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);
}