Add a radius message method to enumerate vendor specific attributes

This commit is contained in:
Martin Willi
2013-03-12 20:37:35 +01:00
parent b4d172aa8e
commit 54b3cbdc78
2 changed files with 92 additions and 0 deletions
+11
View File
@@ -27,6 +27,7 @@
#define RADIUS_MESSAGE_H_
#include <library.h>
#include <pen/pen.h>
#define MAX_RADIUS_ATTRIBUTE_SIZE 253
@@ -204,6 +205,16 @@ struct radius_message_t {
*/
enumerator_t* (*create_enumerator)(radius_message_t *this);
/**
* Create an enumerator over contained RADIUS Vendor-ID attributes.
*
* This enumerator parses only vendor specific attributes in the format
* recommended in RFC2865.
*
* @return enumerator over (int vendor, int type, chunk_t data)
*/
enumerator_t* (*create_vendor_enumerator)(radius_message_t *this);
/**
* Add a RADIUS attribute to the message.
*