with indefinite length encodings.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11540
dc483132-0cff-0310-8789-
dd5450dbe970
+1999-06-30 Tom Yu <tlyu@mit.edu>
+
+ * asn1buf.c (asn1buf_sync): Interim fix for DCE compat problem
+ with indefinite length encodings.
+
1999-06-15 Tom Yu <tlyu@mit.edu>
* asn1_encode.c (asn1_encode_generaltime): Fix minor bug in
asn1buf * buf;
asn1buf * subbuf;
{
- buf->next = subbuf->bound + 1;
+ if (subbuf->bound != buf->bound) {
+ buf->next = subbuf->bound + 1;
+ } else {
+ /*
+ * indefinite length; this will suck
+ * XXX - need to skip fields somehow
+ */
+ buf->next = subbuf->next;
+ }
}
asn1_error_code asn1buf_destroy(buf)