ASN1_SCTX_new

Allocate an ASN.1 scan context with the given per-field scan callback.

Synopsis

Declared in <openssl/asn1.h>

ASN1_SCTX*
ASN1_SCTX_new(int(* scan_cb)(ASN1_SCTX*));

Return Value

New ASN1_SCTX, or NULL on allocation failure; free with ASN1_SCTX_free().

Parameters

NameDescription
scan_cbCallback invoked while scanning ASN.1 templates, or NULL.