]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
update for child struct
authorAlan T. DeKok <aland@freeradius.org>
Mon, 21 Mar 2022 22:36:13 +0000 (18:36 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 21 Mar 2022 22:36:13 +0000 (18:36 -0400)
share/dictionary/dhcpv4/dictionary.rfc3118
src/tests/unit/protocols/dhcpv4/rfc3118.txt

index 254dcce967a45a031060b4d4e508dac3aeaed8ca..843704c9a9e8a2d073f4997fab13f70fd1f116bc 100644 (file)
 #
 ##############################################################################
 
-# Authentication
-ATTRIBUTE       Authentication                          90      struct
-MEMBER          Protocol                        uint8
-MEMBER          Algorithm                       uint8
-MEMBER          RDM                             uint8
-MEMBER          Replay-Detection                uint64
-MEMBER          Authentication-Information      octets
+#
+#  This structure is also used in the relay-agent option, sub-option 8.
+#
+ATTRIBUTE      Authentication                          90      struct
+MEMBER         protocol                                uint8
+MEMBER         algorithm                               uint8   key
+MEMBER         RDM                                     uint8
+MEMBER         replay-detection                        uint64
+
+VALUE  RDM                             monotonically-increasing 1
+
+VALUE  protocol                        configuration-token     0
+VALUE  protocol                        delayed-authentication  1
+VALUE  protocol                        dhcpv6-delayed-authentication 2
+VALUE  protocol                        dhcpv6-reconfigure-key  3
+
+STRUCT HMAC-SHA1-keyed-hash                    algorithm       1
+MEMBER         key-id                          uint32
+MEMBER         hash                            octets[20]
index a87ddd66d61170dabb3962f2439544da10dcd93e..16108e1192af1988a1036c2c9609a5513b9589c8 100644 (file)
@@ -8,11 +8,11 @@ fuzzer-out dhcpv4
 #
 # Authentication
 #
-encode-pair Authentication = { Protocol = 1, Algorithm = 2, RDM = 32, Replay-Detection = 0, Authentication-Information = "123456789a123456789a123456789a"  }
-match 5a 29 01 02 20 00 00 00 00 00 00 00 00 31 32 33 34 35 36 37 38 39 61 31 32 33 34 35 36 37 38 39 61 31 32 33 34 35 36 37 38 39 61
+encode-pair Authentication = { protocol = 1, algorithm = 1, rdm = 1, replay-detection = 0xdeadbeef, algorithm.HMAC-SHA1-keyed-hash = { key-id = 0x2112, hash = 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab } }
+match 5a 23 01 01 01 00 00 00 00 de ad be ef 00 00 21 12 aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa ab
 
 decode-pair -
-match Authentication = { Protocol = 1, Algorithm = 2, RDM = 32, Replay-Detection = 0, Authentication-Information = 0x313233343536373839613132333435363738396131323334353637383961 }
+match Authentication = { protocol = delayed-authentication, algorithm = HMAC-SHA1-keyed-hash, RDM = monotonically-increasing, replay-detection = 3735928559, algorithm.HMAC-SHA1-keyed-hash = { key-id = 8466, hash = 0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab } }
 
 count
 match 7