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:
037a2a5
)
notes
author
Luke Howard
<lukeh@padl.com>
Sun, 12 Sep 2010 02:36:49 +0000
(
04:36
+0200)
committer
Luke Howard
<lukeh@padl.com>
Sun, 12 Sep 2010 02:36:49 +0000
(
04:36
+0200)
mech_eap/util_krb.c
patch
|
blob
|
history
diff --git
a/mech_eap/util_krb.c
b/mech_eap/util_krb.c
index
ccce938
..
75fe0b3
100644
(file)
--- a/
mech_eap/util_krb.c
+++ b/
mech_eap/util_krb.c
@@
-201,6
+201,11
@@
rfc3961ChecksumTypeForKey(OM_uint32 *minor,
memset(&cksum, 0, sizeof(cksum));
+ /*
+ * This is a complete hack but it's the only way to work with
+ * MIT Kerberos pre-1.9 without using private API, as it does
+ * not support passing in zero as the checksum type.
+ */
*minor = krb5_c_make_checksum(krbContext, 0, key, 0, &data, &cksum);
if (*minor != 0)
return GSS_S_FAILURE;