rjaramillo11 - 2006-12-05

Hi,

In using TinyRadius and I can test it normaly.
But my problem begin when I try to use vendor specific attributes.
I create a Dictionary with my vendor attributes and I find 2 problems:

1. One of my vendor attributes has the code 0, and when I try to add it I get an exception. Looking the source, I saw that in the method 'setTypeCode' in the class 'AttributeType' there are a validation of this code between 1 and 255. It could be posible that the validation sould be between 0 and 255??

2. Another time, in the treatment of vendor attributes, when the server try to create the RadiusPacket I find a new exception at the 'readAttribute' method of the 'RadiusAttribute' class. In the source, I change the definition of attrType variable with the next code and it work -> 'int attrType = data[offset] & 0x0ff;' (line:155).
But I don't now if that change can produce another error.

This two things are bugs, or what I'm doing wrong?

Thanks