svn rev #21603: branches/mskrb-integ/src/lib/gssapi/krb5/
lhoward@MIT.EDU
lhoward at MIT.EDU
Fri Dec 26 18:00:29 EST 2008
http://src.mit.edu/fisheye/changelog/krb5/?cs=21603
Commit By: lhoward
Log Message:
confounder is 8 bytes long for rc4-hmac
Changed Files:
U branches/mskrb-integ/src/lib/gssapi/krb5/util_crypt.c
Modified: branches/mskrb-integ/src/lib/gssapi/krb5/util_crypt.c
===================================================================
--- branches/mskrb-integ/src/lib/gssapi/krb5/util_crypt.c 2008-12-26 22:15:18 UTC (rev 21602)
+++ branches/mskrb-integ/src/lib/gssapi/krb5/util_crypt.c 2008-12-26 23:00:28 UTC (rev 21603)
@@ -162,9 +162,14 @@
size_t blocksize;
krb5_data lrandom;
- code = krb5_c_block_size(context, key->enctype, &blocksize);
- if (code)
- return(code);
+ /* We special case rc4*/
+ if (key->enctype == ENCTYPE_ARCFOUR_HMAC) {
+ blocksize = 8;
+ } else {
+ code = krb5_c_block_size(context, key->enctype, &blocksize);
+ if (code)
+ return(code);
+ }
lrandom.length = blocksize;
lrandom.data = (char *)buf;
More information about the cvs-krb5
mailing list