[#ASN1_SCTX_new]
= ASN1&lowbar;SCTX&lowbar;new
:mrdocs:

Allocate an ASN&period;1 scan context with the given per&hyphen;field scan callback&period;

== Synopsis

Declared in `&lt;openssl&sol;asn1&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ASN1_SCTX.adoc[ASN1&lowbar;SCTX]*
ASN1&lowbar;SCTX&lowbar;new(int(* scan&lowbar;cb)(xref:ASN1_SCTX.adoc[ASN1&lowbar;SCTX]*));
----

== Return Value

New ASN1&lowbar;SCTX, or NULL on allocation failure&semi; free with ASN1&lowbar;SCTX&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *scan&lowbar;cb*
| Callback invoked while scanning ASN&period;1 templates, or NULL&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
