X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=util_radius.h;h=656f1b792855054e866e329cd5ef2c560e21e7bf;hb=e063ba4e45d12dbc1a397653f9e77228835e4a2b;hp=d6e4cf59d321dc0fdaed6782b2d53df0eea45da0;hpb=07c30f8b470c931dbf814eb2a9cb10e33c35129d;p=mech_eap.orig diff --git a/util_radius.h b/util_radius.h index d6e4cf5..656f1b7 100644 --- a/util_radius.h +++ b/util_radius.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, JANET(UK) + * Copyright (c) 2011, JANET(UK) * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -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, + json_t *obj); + json_t *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 }