svn rev #23954: branches/iakerb/src/lib/gssapi/krb5/
ghudson@MIT.EDU
ghudson at MIT.EDU
Fri Apr 30 16:36:27 EDT 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=23954
Commit By: ghudson
Log Message:
In iakerb_make_finished(), eliminate a call to
krb5int_c_mandatory_cksumtype() by passing zero to
krb5_k_make_checksum instead. Because we can.
Changed Files:
U branches/iakerb/src/lib/gssapi/krb5/iakerb.c
Modified: branches/iakerb/src/lib/gssapi/krb5/iakerb.c
===================================================================
--- branches/iakerb/src/lib/gssapi/krb5/iakerb.c 2010-04-30 20:26:23 UTC (rev 23953)
+++ branches/iakerb/src/lib/gssapi/krb5/iakerb.c 2010-04-30 20:36:26 UTC (rev 23954)
@@ -86,7 +86,6 @@
krb5_data **finished)
{
krb5_error_code code;
- krb5_cksumtype cksumtype;
krb5_iakerb_finished iaf;
*finished = NULL;
@@ -96,14 +95,7 @@
if (key == NULL)
return KRB5KDC_ERR_NULL_KEY;
- code = krb5int_c_mandatory_cksumtype(context,
- krb5_k_key_enctype(context, key),
- &cksumtype);
- if (code != 0)
- return code;
-
- code = krb5_k_make_checksum(context, cksumtype,
- key, KRB5_KEYUSAGE_IAKERB_FINISHED,
+ code = krb5_k_make_checksum(context, 0, key, KRB5_KEYUSAGE_IAKERB_FINISHED,
conv, &iaf.checksum);
if (code != 0)
return code;
More information about the cvs-krb5
mailing list