[Redbutton-devel] SF.net SVN: redbutton: [448] redbutton-author/trunk
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-10-18 16:06:16
|
Revision: 448
http://redbutton.svn.sourceforge.net/redbutton/?rev=448&view=rev
Author: skilvington
Date: 2007-10-18 09:06:13 -0700 (Thu, 18 Oct 2007)
Log Message:
-----------
keep_tag function is needed
Modified Paths:
--------------
redbutton-author/trunk/asn1decode.c.header
redbutton-author/trunk/asn1tag.h
Modified: redbutton-author/trunk/asn1decode.c.header
===================================================================
--- redbutton-author/trunk/asn1decode.c.header 2007-10-18 10:05:02 UTC (rev 447)
+++ redbutton-author/trunk/asn1decode.c.header 2007-10-18 16:06:13 UTC (rev 448)
@@ -9,10 +9,12 @@
bool keep_tag(unsigned int tagclass)
{
-/* TODO: is this function needed? */
-return true;
- if(ASN1TAGCLASS_GroupIdentifier == ASN1TAG_SYNTHETIC
- || ASN1TAGCLASS_GroupIdentifier == ASN1TAGCLASS_ENUMERATED)
+ if(is_synthetic(tagclass)
+ || tagclass == ASN1TAGCLASS_BOOLEAN
+ || tagclass == ASN1TAGCLASS_INTEGER
+ || tagclass == ASN1TAGCLASS_OctetString
+ || tagclass == ASN1TAGCLASS_Null
+ || tagclass == ASN1TAGCLASS_ENUMERATED)
return true;
else
return false;
Modified: redbutton-author/trunk/asn1tag.h
===================================================================
--- redbutton-author/trunk/asn1tag.h 2007-10-18 10:05:02 UTC (rev 447)
+++ redbutton-author/trunk/asn1tag.h 2007-10-18 16:06:13 UTC (rev 448)
@@ -771,7 +771,7 @@
#define ASN1TAGCLASS_GenericInteger FIXME
#define ASN1TAGCLASS_GenericObjectReference FIXME
#define ASN1TAGCLASS_GenericOctetString FIXME
-#define ASN1TAGCLASS_GroupItem FIXME
+#define ASN1TAGCLASS_GroupItem ASN1TAG_CHOICE
#define ASN1TAGCLASS_InputTypeEnum ASN1TAGCLASS_ENUMERATED
#define ASN1TAGCLASS_JustificationEnum ASN1TAGCLASS_ENUMERATED
#define ASN1TAGCLASS_LineOrientationEnum ASN1TAGCLASS_ENUMERATED
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|