projects
/
mech_eap.orig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b1fbe85
)
Ensure checksum type is keyed
author
Luke Howard
<lukeh@padl.com>
Sat, 4 Dec 2010 01:52:16 +0000
(12:52 +1100)
committer
Luke Howard
<lukeh@padl.com>
Sat, 4 Dec 2010 01:52:16 +0000
(12:52 +1100)
util_krb.c
patch
|
blob
|
history
diff --git
a/util_krb.c
b/util_krb.c
index
34d6cb6
..
4cc4b14
100644
(file)
--- a/
util_krb.c
+++ b/
util_krb.c
@@
-241,5
+241,10
@@
rfc3961ChecksumTypeForKey(OM_uint32 *minor,
krb5_free_checksum_contents(krbContext, &cksum);
#endif /* HAVE_KRB5INT_C_MANDATORY_CKSUMTYPE */
+ if (!krb5_c_is_keyed_cksum(*cksumtype)) {
+ *minor = KRB5KRB_AP_ERR_INAPP_CKSUM;
+ return GSS_S_FAILURE;
+ }
+
return GSS_S_COMPLETE;
}