/*
- * 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
const gss_cred_id_t cred,
const gss_ctx_id_t ctx);
- void setAttribute(int complete,
+ bool setAttribute(int complete,
const gss_buffer_t attr,
const gss_buffer_t value);
- void deleteAttribute(const gss_buffer_t value);
+ bool deleteAttribute(const gss_buffer_t value);
bool getAttributeTypes(gss_eap_attr_enumeration_cb, void *data) const;
bool getAttribute(const gss_buffer_t attr,
int *authenticated,
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 {