[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

_gssapi_wrap_size_cfx() is broken...




... and it's my fault. The following patch appears to work:

Index: cfx.c
===================================================================
RCS file: /home/project/cvs/heimdal/lib/gssapi/cfx.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- cfx.c	20 Apr 2004 02:22:40 -0000	1.34
+++ cfx.c	30 Apr 2006 13:21:21 -0000	1.35
@@ -118,7 +118,7 @@
     }
 
     ret = wrap_length_cfx(crypto, conf_req_flag, 
-			  req_output_size,
+			  0,
 			  &output_length, &cksumsize, &padlength);
     if (ret != 0) {
 	gssapi_krb5_set_error_string();

But it's not really correct as it needs to account for padding
etc.

Ideas?

-- Luke

--