Sha256: a9f40665b25343c7bb0ac061c873dfeb3b59aae0873b85510cb5e8abe17bf7aa
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true # This file is part of PacketGen # See https://github.com/lemontree55/packetgen for more informations # Copyright (C) 2016 Sylvain Daubert <sylvain.daubert@laposte.net> # Copyright (C) 2024 LemonTree55 <lenontree@proton.me> # This program is published under MIT license. module PacketGen module Header class EAP # Extensible Authentication Protocol (EAP) - # {https://tools.ietf.org/html/rfc3748#section-5.4 MD5 challenge} # @author Sylvain Daubert # @since 2.1.4 class MD5 < EAP update_field :type, default: 4 remove_field :body # @!attribute value_size # @return [Integer] 8-bit value size define_field :value_size, Types::Int8 # @!attribute value # @return [::String] define_field :value, Types::String, builder: ->(h, t) { t.new(length_from: h[:value_size]) } # @!attribute optional_name # @return [::String] define_field :optional_name, Types::String end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
packetgen-3.3.3 | lib/packetgen/header/eap/md5.rb |
packetgen-3.3.2 | lib/packetgen/header/eap/md5.rb |