sc_asn1_read_tag(3)

sc_asn1_read_tag3

Extract a tag from an asn.1 entry

Usage

#include <opensc.h>
int sc_asn1_read_tag(const unsigned char **buf, size_t buflen,
                     unsigned int *cla_out, unsigned int *tag_out, size_t *taglen);

Overview

This function extracts a tag from an ASN.1 entry at the buffer pointed to by the pointer in buf. The buffer is buflen bytes long. The tag class will be stored in cla_out, the tag itself in tag_out, and the length of the extracted tag in tag_len.

Return value

Returns 1 if successful, or -1 in case of error.

Releases

3 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0
  3. 6.0

From libopensc2-dev 0.11.13-1.1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.