projects
/
cyrus-sasl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
efcd7f7
)
cleanup
author
Luke Howard
<lukeh@padl.com>
Sat, 11 Sep 2010 09:00:21 +0000
(11:00 +0200)
committer
Luke Howard
<lukeh@padl.com>
Sat, 11 Sep 2010 09:00:21 +0000
(11:00 +0200)
mech_eap/util_name.c
patch
|
blob
|
history
mech_eap/util_radius.c
patch
|
blob
|
history
mech_eap/util_radius.h
patch
|
blob
|
history
mech_eap/util_saml.c
patch
|
blob
|
history
mech_eap/util_saml.h
patch
|
blob
|
history
diff --git
a/mech_eap/util_name.c
b/mech_eap/util_name.c
index
5b4491d
..
f3dddf2
100644
(file)
--- a/
mech_eap/util_name.c
+++ b/
mech_eap/util_name.c
@@
-106,8
+106,8
@@
gssEapReleaseName(OM_uint32 *minor, gss_name_t *pName)
GSSEAP_KRB_INIT(&krbContext);
krb5_free_principal(krbContext, name->krbPrincipal);
GSSEAP_KRB_INIT(&krbContext);
krb5_free_principal(krbContext, name->krbPrincipal);
- radius
FreeAVPs(&tmpMinor,
name->avps);
- saml
FreeAssertion(&tmpMinor,
name->assertion);
+ radius
ReleaseAVPs(&tmpMinor, &
name->avps);
+ saml
ReleaseAssertion(&tmpMinor, &
name->assertion);
GSSEAP_MUTEX_DESTROY(&name->mutex);
GSSEAP_FREE(name);
GSSEAP_MUTEX_DESTROY(&name->mutex);
GSSEAP_FREE(name);
diff --git
a/mech_eap/util_radius.c
b/mech_eap/util_radius.c
index
f417983
..
0c9c6e3
100644
(file)
--- a/
mech_eap/util_radius.c
+++ b/
mech_eap/util_radius.c
@@
-44,11
+44,12
@@
radiusDuplicateAVPs(OM_uint32 *minor,
}
OM_uint32
}
OM_uint32
-radius
Fre
eAVPs(OM_uint32 *minor,
-
struct eap_gss_avp_list
*avps)
+radius
Releas
eAVPs(OM_uint32 *minor,
+
struct eap_gss_avp_list *
*avps)
{
{
- if (avps != NULL) {
+ if (
*
avps != NULL) {
GSSEAP_NOT_IMPLEMENTED;
GSSEAP_NOT_IMPLEMENTED;
+ *avps = NULL;
}
}
}
}
diff --git
a/mech_eap/util_radius.h
b/mech_eap/util_radius.h
index
154529e
..
4f9a841
100644
(file)
--- a/
mech_eap/util_radius.h
+++ b/
mech_eap/util_radius.h
@@
-43,8
+43,8
@@
radiusDuplicateAVPs(OM_uint32 *minor,
struct eap_gss_avp_list **out);
OM_uint32
struct eap_gss_avp_list **out);
OM_uint32
-radius
Fre
eAVPs(OM_uint32 *minor,
-
struct eap_gss_avp_list *in
);
+radius
Releas
eAVPs(OM_uint32 *minor,
+
struct eap_gss_avp_list **avps
);
OM_uint32
radiusGetAttributeTypes(OM_uint32 *minor,
OM_uint32
radiusGetAttributeTypes(OM_uint32 *minor,
diff --git
a/mech_eap/util_saml.c
b/mech_eap/util_saml.c
index
f668c8f
..
e86b232
100644
(file)
--- a/
mech_eap/util_saml.c
+++ b/
mech_eap/util_saml.c
@@
-41,11
+41,12
@@
samlDuplicateAssertion(OM_uint32 *minor,
}
OM_uint32
}
OM_uint32
-saml
Fre
eAssertion(OM_uint32 *minor,
-
struct eap_gss_saml_assertion
*assertion)
+saml
Releas
eAssertion(OM_uint32 *minor,
+
struct eap_gss_saml_assertion *
*assertion)
{
{
- if (assertion != NULL) {
+ if (
*
assertion != NULL) {
GSSEAP_NOT_IMPLEMENTED;
GSSEAP_NOT_IMPLEMENTED;
+ *assertion = NULL;
}
}
}
}
diff --git
a/mech_eap/util_saml.h
b/mech_eap/util_saml.h
index
283ce60
..
300f822
100644
(file)
--- a/
mech_eap/util_saml.h
+++ b/
mech_eap/util_saml.h
@@
-53,8
+53,8
@@
samlExportAssertion(OM_uint32 *minor,
gss_buffer_t buffer);
OM_uint32
gss_buffer_t buffer);
OM_uint32
-saml
Fre
eAssertion(OM_uint32 *minor,
-
struct eap_gss_saml_assertion
*assertion);
+saml
Releas
eAssertion(OM_uint32 *minor,
+
struct eap_gss_saml_assertion *
*assertion);
OM_uint32
samlGetAttributeTypes(OM_uint32 *minor,
OM_uint32
samlGetAttributeTypes(OM_uint32 *minor,