diff options
author | Neale Ranns <nranns@cisco.com> | 2019-08-27 12:26:14 +0000 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-08-27 13:49:55 +0000 |
commit | 2cdcd0cf4004b2c0d1d3b891e381aac5735c21f1 (patch) | |
tree | 5efcdd7cd73e7d1da4ba6aede88908df93f460c2 /test/template_ipsec.py | |
parent | 8e9e0eccb280619f10d287dad3f79541ade03adc (diff) |
ipsec: Fix NULL encryption algorithm
Type: fix
Ticket: VPP-1756
the block-size was set to 0 resulting in incorrect placement of the ESP
footer.
add tests for NULL encrypt + integ.
Change-Id: I8ab3afda8e68f9ff649540cba3f2cac68f12bbba
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/template_ipsec.py')
-rw-r--r-- | test/template_ipsec.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/template_ipsec.py b/test/template_ipsec.py index c3fc8bd434f..a4f998ee84e 100644 --- a/test/template_ipsec.py +++ b/test/template_ipsec.py @@ -379,7 +379,7 @@ class IpsecTra4(object): # a malformed 'runt' packet # created by a mis-constructed SA - if (ESP == self.encryption_type): + if (ESP == self.encryption_type and p.crypt_algo != "NULL"): bogus_sa = SecurityAssociation(self.encryption_type, p.vpp_tra_spi) pkt = (Ether(src=self.tra_if.remote_mac, |