]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add VSA to internal encoder test
authorNick Porter <nick@portercomputing.co.uk>
Fri, 23 Aug 2024 11:27:09 +0000 (12:27 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 23 Aug 2024 11:27:35 +0000 (12:27 +0100)
src/tests/unit/protocols/internal/encode.txt

index d497c1deff04d2e3b077b501aa0651c92a6120dc..3cbf66067bfe60895b7b00a7668ccb40a0ce8218 100644 (file)
@@ -15,5 +15,11 @@ match 00 f1 11 00 f3 0e 00 01 04 00 00 00 01 00 01 04 00 00 00 02
 decode-pair -
 match Extended-Attribute-1 = { Unit-Ext-241-TLV = { Unit-TLV-Integer = 1, Unit-TLV-Integer = 2 } }
 
+encode-pair Vendor-Specific.Cisco.AVPair = "stupid=1", Vendor-Specific.Cisco.AVPair = "cisco=2"
+match 00 1a 18 00 09 15 00 01 08 73 74 75 70 69 64 3d 31 00 01 07 63 69 73 63 6f 3d 32
+
+decode-pair -
+match Vendor-Specific = { Cisco = { AVPair = "stupid=1", AVPair = "cisco=2" } }
+
 count
-match 10
+match 14