Rechercher une page de manuel
sc_asn1_put_tag
Langue: en
Version: 02/26/2009 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
sc_asn1_put_tag - Construct an ASN.1 entry in a bufferSYNOPSIS
-
#include <opensc.h> int sc_asn1_put_tag(int tag, const unsigned char *data, int datalen, unsigned char *out, int outlen, unsigned char **nextbuf);
DESCRIPTION
This function constructs a single entry in an ASN.1 stream, at the buffer pointed to by out (which is outlen bytes long). The tag to be used is in tag, and the entry payload is pointed to by data, which is datalen bytes long.
If nextbuf is not NULL, it will be filled in with a pointer to the buffer address immediately following the newly copied entry.
RETURN VALUE
Returns 0 if successful, or a negative value in case of error.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre