man asn1_read_tag (Fonctions bibliothèques) - Returns the TAG of one element inside a structure

NAME

asn1_read_tag - Returns the TAG of one element inside a structure

SYNOPSIS

#include <libtasn1.h> asn1_retCode asn1_read_tag(node_asn * root, const char * name, int * tagValue, int * classValue);

ARGUMENTS

node_asn * root
pointer to a structure
const char * name
the name of the element inside a structure.
int * tagValue
variable that will contain the TAG value.
int * classValue
variable that will specify the TAG type.

DESCRIPTION

Returns the TAG and the CLASS of one element inside a structure.

CLASS CAN HAVE ONE OF THESE CONSTANTS

ASN1_CLASS_APPLICATION, ASN1_CLASS_UNIVERSAL, ASN1_CLASS_PRIVATE or ASN1_CLASS_CONTEXT_SPECIFIC.

RETURNS

ASN1_SUCCESS

Set value OK.

ASN1_ELEMENT_NOT_FOUND

NAME is not a valid element.

COPYRIGHT

Copyright © 2001, 2002, 2003 Fabio Fiorina.

Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

SEE ALSO

The full documentation for libtasn1 is maintained as a Texinfo manual. If the info and libtasn1 programs are properly installed at your site, the command

info libtasn1

should give you access to the complete manual.