X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=mech_eap%2Futil_attr.h;h=614165867bf65259e42da2dd9fc913977d08d927;hb=refs%2Fheads%2Fprovider;hp=43a5c88b865cab8cda5e04e46986537e42043383;hpb=f5bdfb8fde9b759d6bc5695ef7457c02d3b41d8f;p=cyrus-sasl.git diff --git a/mech_eap/util_attr.h b/mech_eap/util_attr.h index 43a5c88..6141658 100644 --- a/mech_eap/util_attr.h +++ b/mech_eap/util_attr.h @@ -92,9 +92,9 @@ public: virtual void releaseAnyNameMapping(gss_buffer_t type_id, gss_any_t input) const {} - virtual void marshall(gss_buffer_t buffer) const {} - virtual bool unmarshall(const gss_eap_attr_ctx *ctx, - const gss_buffer_t buffer) { return false; } + virtual void exportToBuffer(gss_buffer_t buffer) const {} + virtual bool initFromBuffer(const gss_eap_attr_ctx *ctx, + const gss_buffer_t buffer) { return false; } static bool init() { return true; } static void finalize() {} @@ -110,7 +110,7 @@ typedef gss_eap_attr_provider *(*gss_eap_attr_create_factory)(void); struct gss_eap_attr_ctx : gss_eap_attr_provider { public: - gss_eap_attr_ctx(void) {} + gss_eap_attr_ctx(void); ~gss_eap_attr_ctx(void); bool initFromExistingContext(const gss_eap_attr_ctx *source, @@ -119,8 +119,6 @@ public: const gss_cred_id_t cred, const gss_ctx_id_t ctx); - static gss_eap_attr_ctx *createAttrContext(void); - bool getAttributeTypes(gss_eap_attr_enumeration_cb, void *data) const; bool getAttributeTypes(gss_buffer_set_t *attrs); @@ -139,9 +137,9 @@ public: void releaseAnyNameMapping(gss_buffer_t type_id, gss_any_t input) const; - void marshall(gss_buffer_t buffer) const; - bool unmarshall(const gss_eap_attr_ctx *ctx, - const gss_buffer_t buffer); + void exportToBuffer(gss_buffer_t buffer) const; + bool initFromBuffer(const gss_eap_attr_ctx *ctx, + const gss_buffer_t buffer); static bool init(); static void finalize();