projects
/
mech_eap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup unused parameter warnings
[mech_eap.git]
/
util_saml.h
diff --git
a/util_saml.h
b/util_saml.h
index
7a750a0
..
99be5b8
100644
(file)
--- a/
util_saml.h
+++ b/
util_saml.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 201
0
, JANET(UK)
+ * Copyright (c) 201
1
, JANET(UK)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@
-30,6
+30,10
@@
* SUCH DAMAGE.
*/
* SUCH DAMAGE.
*/
+/*
+ * SAML attribute provider.
+ */
+
#ifndef _UTIL_SAML_H_
#define _UTIL_SAML_H_ 1
#ifndef _UTIL_SAML_H_
#define _UTIL_SAML_H_ 1
@@
-55,10
+59,10
@@
public:
const gss_ctx_id_t ctx);
bool getAttributeTypes(gss_eap_attr_enumeration_cb, void *data) const;
const gss_ctx_id_t ctx);
bool getAttributeTypes(gss_eap_attr_enumeration_cb, void *data) const;
-
void
setAttribute(int complete,
+
bool
setAttribute(int complete,
const gss_buffer_t attr,
const gss_buffer_t value);
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 getAttribute(const gss_buffer_t attr,
int *authenticated,
int *complete,
bool getAttribute(const gss_buffer_t attr,
int *authenticated,
int *complete,
@@
-74,7
+78,9
@@
public:
bool initFromBuffer(const gss_eap_attr_ctx *ctx,
const gss_buffer_t buffer);
bool initFromBuffer(const gss_eap_attr_ctx *ctx,
const gss_buffer_t buffer);
- const opensaml::saml2::Assertion *getAssertion(void) const {
+ opensaml::saml2::Assertion *initAssertion(void);
+
+ opensaml::saml2::Assertion *getAssertion(void) const {
return m_assertion;
}
bool authenticated(void) const {
return m_assertion;
}
bool authenticated(void) const {
@@
-82,6
+88,7
@@
public:
}
time_t getExpiryTime(void) const;
}
time_t getExpiryTime(void) const;
+ OM_uint32 mapException(OM_uint32 *minor, std::exception &e) const;
static bool init(void);
static void finalize(void);
static bool init(void);
static void finalize(void);
@@
-107,10
+114,10
@@
public:
~gss_eap_saml_attr_provider(void) {}
bool getAttributeTypes(gss_eap_attr_enumeration_cb, void *data) const;
~gss_eap_saml_attr_provider(void) {}
bool getAttributeTypes(gss_eap_attr_enumeration_cb, void *data) const;
-
void
setAttribute(int complete,
+
bool
setAttribute(int complete,
const gss_buffer_t attr,
const gss_buffer_t value);
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 getAttribute(const gss_buffer_t attr,
int *authenticated,
int *complete,
bool getAttribute(const gss_buffer_t attr,
int *authenticated,
int *complete,
@@
-131,7
+138,8
@@
public:
int *complete,
const opensaml::saml2::Attribute **pAttribute) const;
bool getAssertion(int *authenticated,
int *complete,
const opensaml::saml2::Attribute **pAttribute) const;
bool getAssertion(int *authenticated,
- const opensaml::saml2::Assertion **pAssertion) const;
+ opensaml::saml2::Assertion **pAssertion,
+ bool createIfAbsent = false) const;
static bool init(void);
static void finalize(void);
static bool init(void);
static void finalize(void);