|
NAMEASN1_item_new , ASN1_item_free
—
generic ASN.1 value constructor and destructor
SYNOPSIS#include <openssl/asn1.h>
ASN1_VALUE *
void
DESCRIPTIONASN1_item_new () allocates and initializes an empty ASN.1
value of the type described by the global static object
it.
If the item type described by it is
reference counted, ASN1_VALUE is an incomplete type, and pointers to it always require casting to the correct complete type before they can be dereferenced. For all practical purposes, a pointer to ASN1_VALUE is equivalent to a void pointer. Depending on it, there are more than 150
different types that RETURN VALUESTheASN1_item_new () function returns the new
ASN1_VALUE object if successful; otherwise
NULL is returned and an error code can be retrieved
with
ERR_get_error(3).
SEE ALSOASN1_get_object(3), ASN1_item_d2i(3), ASN1_item_digest(3), ASN1_item_pack(3), ASN1_item_sign(3), ASN1_item_verify(3), ASN1_NULL_new(3), ASN1_TYPE_new(3), d2i_ASN1_NULL(3), OBJ_nid2obj(3)HISTORYASN1_item_new () and
ASN1_item_free () first appeared in OpenSSL 0.9.7 and
have been available since OpenBSD 3.2.
BUGSThe ASN1_VALUE type compromises type safety and invites programming mistakes that will typically have severe consequences.
Visit the GSP FreeBSD Man Page Interface. |