[Redbutton-devel] SF.net SVN: redbutton: [423] redbutton-author/trunk/mhegc.c
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-09-24 18:36:02
|
Revision: 423
http://redbutton.svn.sourceforge.net/redbutton/?rev=423&view=rev
Author: skilvington
Date: 2007-09-24 11:35:05 -0700 (Mon, 24 Sep 2007)
Log Message:
-----------
don't print synthetic nodes in the DER dump in -vv mode
Modified Paths:
--------------
redbutton-author/trunk/mhegc.c
Modified: redbutton-author/trunk/mhegc.c
===================================================================
--- redbutton-author/trunk/mhegc.c 2007-09-24 16:29:26 UTC (rev 422)
+++ redbutton-author/trunk/mhegc.c 2007-09-24 18:35:05 UTC (rev 423)
@@ -184,23 +184,32 @@
print_indent(indent);
fprintf(stderr, "[%s %u]\n", asn1class_name(n->asn1class), n->asn1tag);
hexdump(stderr, n->hdr_value, n->hdr_length);
+ if(has_real_children(n))
+ {
+ print_indent(indent);
+ fprintf(stderr, "{\n");
+ indent ++;
+ }
}
/* and our value */
- if(has_real_children(n))
+ if(n->children)
{
- print_indent(indent);
- fprintf(stderr, "{\n");
for(kid=n->children; kid; kid=kid->siblings)
- print_der(kid, indent + 1);
- print_indent(indent);
- fprintf(stderr, "}\n");
+ print_der(kid, indent);
}
else
{
hexdump(stderr, n->value, n->length);
}
+ if(!is_synthetic(n->asn1tag) && has_real_children(n))
+ {
+ indent --;
+ print_indent(indent);
+ fprintf(stderr, "}\n");
+ }
+
return;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|