} //public void AddAttribute(byte Type, string Value) private void SetAttribute(byte Type, byte[] Value) { if (AttributeExists(Type) != -1) { RemoveAttribute(Type); } RadiusAttribute pRadiusAttribute = new RadiusAttribute(Type, Value); pAttributeList.Add(pRadiusAttribute); DebugOutput("Adding Radius Attribute Type " + Type + " (" + pRadiusAttribute.Name + ") " + "with value " + Utils.ToHexString(Value)); } //public void AddAttribute(byte Type, string Value)
} //private void GenerateRA() public void SetAttribute(byte Type, string Value) { if (AttributeExists(Type) != -1) { RemoveAttribute(Type); } RadiusAttribute pRadiusAttribute = new RadiusAttribute(Type, Value); if (pRadiusAttribute.Index != 0) { pAttributeList.Add(pRadiusAttribute); DebugOutput("Adding Radius Attribute Type " + Type + " (" + pRadiusAttribute.Name + ") " + "with value " + Value); } else { DebugOutput("ERROR: Attribute Type " + Type + " (" + pRadiusAttribute.Name + ") " + "with value " + Value + " could not be added - parsing error"); } } //public void AddAttribute(byte Type, string Value)