X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=util_radius.h;h=a7878dfd1c3e6f67829beef0f8968314cc676b38;hb=refs%2Fheads%2Fjson-name;hp=d42f31ea67ba6b3bb51d0d388f54c09425af634f;hpb=aa40dd8de138c5a2fcd49023bb6ccac925735c0b;p=mech_eap.orig diff --git a/util_radius.h b/util_radius.h index d42f31e..a7878df 100644 --- a/util_radius.h +++ b/util_radius.h @@ -66,9 +66,11 @@ public: void releaseAnyNameMapping(gss_buffer_t type_id, gss_any_t input) const; - void exportToBuffer(gss_buffer_t buffer) const; - bool initFromBuffer(const gss_eap_attr_ctx *ctx, - const gss_buffer_t buffer); + const char *prefix(void) const; + const char *name(void) const; + bool initWithJsonObject(const gss_eap_attr_ctx *manager, + JSONObject &obj); + JSONObject jsonRepresentation(void) const; bool getAttribute(uint32_t attribute, int *authenticated, @@ -149,7 +151,6 @@ gssEapRadiusMapError(OM_uint32 *minor, struct rs_error *err); #define RS_CONFIG_FILE SYSCONFDIR "/radsec.conf" -#define RS_DICT_FILE DATAROOTDIR "/freeradius/dictionary" #define VENDORPEC_MS 311 /* RFC 2548 */ @@ -165,7 +166,7 @@ gssEapRadiusMapError(OM_uint32 *minor, #define PW_SAML_AAA_ASSERTION 132 #define IS_RADIUS_ERROR(code) ((code) >= ERROR_TABLE_BASE_rse && \ - (code) <= ERROR_TABLE_BASE_rse + RSE_SOME_ERROR) + (code) <= ERROR_TABLE_BASE_rse + RSE_TIMEOUT_IO) #ifdef __cplusplus }