sc_asn1_decode man page on SuSE

Man page or keyword search:  
man Server   14857 pages
apropos Keyword Search (all sections)
Output format
SuSE logo
[printable version]

SC_ASN1_DECODE(3)	     OpenSC API reference	     SC_ASN1_DECODE(3)

NAME
       sc_asn1_decode - Extract entries from an ASN.1 stream

SYNOPSIS
	   #include <opensc.h>

	   int sc_asn1_decode(struct sc_context *ctx, struct sc_asn1_entry *asn1,
			      const unsigned char *inbuf, size_t len,
			      const unsigned char **newbuf, size_t *len_left);

DESCRIPTION
       This function extracts information from the ASN.1 stream pointed to by
       inbuf (which is len bytes in size) and stores it into the array of
       struct sc_asn_1 entries pointed to by asn1. The array must be big
       enough to contain all the entries that will be found, or an error will
       be flagged. The last entry in the array must be a NULL entry, i.e. the
       name field must be set to NULL.

       The structure of the expected data must be encoded in the entries in
       asn1 before calling this function; specifically the name, type, tag and
       flags fields must be filled in.

       The function will then scan the stream and fill in the remaining
       fields.	newbuf will point to the byte immediately following the
       extracted record, and len_left will contain the number of bytes left in
       the buffer. Thus, the newbuf and len_left fields may be passed in to
       sc_asn1_decode() again, as the inbuf and len parameters, until len
       reaches 0.

RETURN VALUE
       Returns 0 if successful, or a negative value in case of error.

opensc				  08/27/2008		     SC_ASN1_DECODE(3)
[top]

List of man pages available for SuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net