Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
ASN1_TYPE_new, ASN1_TYPE_free, ASN1_TYPE_get, ASN1_TYPE_set, ASN1_TYPE_set1, ASN1_TYPE_set_octetstring, ASN1_TYPE_get_octetstring, ASN1_TYPE_set_int_octetstring, ASN1_TYPE_get_int_octetstring, ASN1_TYPE_cmp — ASN.1 objects of arbitrary typeSYNOPSIS
#include <openssl/asn1.h>ASN1_TYPE_new(void);
ASN1_TYPE_free(ASN1_TYPE *a);
ASN1_TYPE_get(const ASN1_TYPE *a);
ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value);
ASN1_TYPE_set1(ASN1_TYPE *a, int type, const void *value);
ASN1_TYPE_set_octetstring(ASN1_TYPE *a, const unsigned char *data, int len);
ASN1_TYPE_get_octetstring(const ASN1_TYPE *a, unsigned char *buffer, int buflen);
ASN1_TYPE_set_int_octetstring(ASN1_TYPE *a, long num, const unsigned char *data, int len);
ASN1_TYPE_get_int_octetstring(const ASN1_TYPE *a, long *num, unsigned char *buffer, int buflen);
ASN1_TYPE_cmp(const ASN1_TYPE *a, const ASN1_TYPE *b);
DESCRIPTION
The ASN1_TYPE data type and the V_ASN1_ANY type identifier constant represent the ASN.1 ANY type. An ASN1_TYPE object can store an ASN.1 value of arbitrary type, including constructed types such as a SEQUENCE. It also remembers internally which type it currently holds.or
V_ASN1_OTHER), then the ASN1_STRING contains the entire ASN.1 encoding verbatim, including tag and length octets.