summaryrefslogtreecommitdiff
path: root/lib/element.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-22 19:38:38 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-22 19:39:17 +0100
commiteba04f5f91b62c33a800ed8cf3325a4d82e12dd5 (patch)
treee484cad65fadb7cd2f4968019f4c15347716e47a /lib/element.c
parent3b545f01f74778112769ef1a1225324d6428423a (diff)
downloadlibtasn1-eba04f5f91b62c33a800ed8cf3325a4d82e12dd5.tar.gz
libtasn1-eba04f5f91b62c33a800ed8cf3325a4d82e12dd5.tar.bz2
libtasn1-eba04f5f91b62c33a800ed8cf3325a4d82e12dd5.zip
small simplifications
Diffstat (limited to 'lib/element.c')
-rw-r--r--lib/element.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/lib/element.c b/lib/element.c
index 2c6a2fd..f1d002e 100644
--- a/lib/element.c
+++ b/lib/element.c
@@ -926,26 +926,7 @@ asn1_read_tag (asn1_node root, const char *name, int *tagValue,
switch (type)
{
- case ASN1_ETYPE_NULL:
- case ASN1_ETYPE_BOOLEAN:
- case ASN1_ETYPE_INTEGER:
- case ASN1_ETYPE_ENUMERATED:
- case ASN1_ETYPE_OBJECT_ID:
- case ASN1_ETYPE_OCTET_STRING:
- case ASN1_ETYPE_GENERALSTRING:
- case ASN1_ETYPE_NUMERICSTRING:
- case ASN1_ETYPE_IA5STRING:
- case ASN1_ETYPE_TELETEXSTRING:
- case ASN1_ETYPE_PRINTABLESTRING:
- case ASN1_ETYPE_UNIVERSALSTRING:
- case ASN1_ETYPE_BMPSTRING:
- case ASN1_ETYPE_UTF8STRING:
- case ASN1_ETYPE_VISIBLESTRING:
- case ASN1_ETYPE_BIT_STRING:
- case ASN1_ETYPE_SEQUENCE:
- case ASN1_ETYPE_SEQUENCE_OF:
- case ASN1_ETYPE_SET:
- case ASN1_ETYPE_SET_OF:
+ CASE_TAGGED_TYPES:
*tagValue = _asn1_tags[type].tag;
break;
case ASN1_ETYPE_TIME: