sc_asn1_find_tag

Langue: en

Autres versions - même langue

Version: 07/16/2007 (openSuse - 09/10/07)

Section: 3 (Bibliothèques de fonctions)

NAME

sc_asn1_find_tag - Find a tag in an ASN.1 stream

SYNOPSIS


#include <opensc.h>



const unsigned char *sc_asn1_find_tag(struct sc_context *ctx,

                                      const unsigned char *buf, size_t buflen,

                                      unsigned int tag_in, size_t *taglen_in);

                

DESCRIPTION

This function tries to find an ASN.1 tag matching tag_in in the buffer pointed to by buf, which is of size buflen. The buffer should contain a series of ASN.1 entries.

RETURN VALUE

If the specified tag was not found, NULL is returned. If found, the address where it was found is returned, and taglen_in is set to the length of the found tag.