Ensure abfab radius attributes are defined
authorKevin Wasserman <krwasserman@painless-security.com>
Tue, 16 Dec 2014 19:15:07 +0000 (14:15 -0500)
committerKevin Wasserman <krwasserman@painless-security.com>
Tue, 16 Dec 2014 19:15:07 +0000 (14:15 -0500)
libeap/src/utils/radius_utils.h

index b0560a4..a04de32 100644 (file)
@@ -23,6 +23,23 @@ typedef struct radius_parser_struct *radius_parser;
 extern "C" {
 #endif
 
+/* Ensure abfab radius attributes are defined. See rfc 7055 */
+#ifndef PW_GSS_ACCEPTOR_SERVICE_NAME
+#define PW_GSS_ACCEPTOR_SERVICE_NAME 164
+#endif
+
+#ifndef PW_GSS_ACCEPTOR_HOST_NAME
+#define PW_GSS_ACCEPTOR_HOST_NAME 165
+#endif
+
+#ifndef PW_GSS_ACCEPTOR_SERVICE_SPECIFICS
+#define PW_GSS_ACCEPTOR_SERVICE_SPECIFICS 166
+#endif
+
+#ifndef PW_GSS_ACCEPTOR_REALM_NAME
+#define PW_GSS_ACCEPTOR_REALM_NAME 167
+#endif
+
 /*
  * Simple utility to add a single type-length-value attribute to a buffer.
  * Currently, there is no dictionary support: 'type' and 'len' are always