|
NAMEASN1_item_pack , ASN1_item_unpack
—
pack an ASN.1 object into an ASN1_STRING
SYNOPSIS#include <openssl/asn1.h>
ASN1_STRING *
void *
DESCRIPTIONASN1_item_pack () encodes the object pointed to by
val_in into DER format using
ASN1_item_i2d(3)
and stores the encoded form in **string_out. If
string_out or *string_out is a
NULL pointer, a new ASN1_STRING
object is allocated and returned.
RETURN VALUESASN1_item_pack () returns the modified or new object or
NULL if memory allocation or encoding fails.
SEE ALSOASN1_item_d2i(3), ASN1_item_new(3), ASN1_STRING_new(3)HISTORYASN1_item_pack () and
ASN1_item_unpack () first appeared in OpenSSL 0.9.7 and
have been available since OpenBSD 3.2.
BUGSSee the BUGS section in ASN1_item_i2d(3).
Visit the GSP FreeBSD Man Page Interface. |