/*
- * Copyright (c) 2010, JANET(UK)
+ * Copyright (c) 2011, JANET(UK)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* SUCH DAMAGE.
*/
+/*
+ * Local attribute provider.
+ */
+
#ifndef _UTIL_SHIB_H_
#define _UTIL_SHIB_H_ 1
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 *marshallingKey(void) const;
+ bool unmarshallAndInit(const gss_eap_attr_ctx *manager,
+ DDF &object GSSEAP_UNUSED);
+ DDF marshall(void) const;
static bool init(void);
static void finalize(void);
+ OM_uint32 mapException(OM_uint32 *minor, std::exception &e) const;
+
static gss_eap_attr_provider *createAttrContext(void);
private:
static std::vector <shibsp::Attribute *>
duplicateAttributes(const std::vector <shibsp::Attribute *>src);
- int getAttributeIndex(const gss_buffer_t attr) const;
+ ssize_t getAttributeIndex(const gss_buffer_t attr) const;
const shibsp::Attribute *getAttribute(const gss_buffer_t attr) const;
std::vector<shibsp::Attribute *> getAttributes(void) const {