1SC_ASN1_FIND_TAG(3) OpenSC API reference SC_ASN1_FIND_TAG(3)
2
3
4
6 sc_asn1_find_tag - Find a tag in an ASN.1 stream
7
9 #include <opensc.h>
10
11 const unsigned char *sc_asn1_find_tag(struct sc_context *ctx,
12 const unsigned char *buf, size_t buflen,
13 unsigned int tag_in, size_t *taglen_in);
14
15
16
18 This function tries to find an ASN.1 tag matching tag_in in the buffer
19 pointed to by buf, which is of size buflen. The buffer should contain a
20 series of ASN.1 entries.
21
23 If the specified tag was not found, NULL is returned. If found, the
24 address where it was found is returned, and taglen_in is set to the
25 length of the found tag.
26
27
28
29opensc 05/04/2007 SC_ASN1_FIND_TAG(3)