opensc/doc/api/asn1/sc_format_asn1_entry.xml

37 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<refentry id="scformatasn1entry">
<refentryinfo><title>OpenSC API Reference</title></refentryinfo>
<refmeta>
<refentrytitle>sc_format_asn1_entry</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>opensc</refmiscinfo>
</refmeta>
<refnamediv>
<refname>sc_format_asn1_entry</refname>
<refpurpose>Fill in an ASN.1 entry structure</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<para>
<programlisting>
#include &lt;opensc.h&gt;
void sc_format_asn1_entry(struct sc_asn1_entry *entry, void *parm, void *arg, int set_present);
</programlisting>
</para>
</refsect1>
<refsect1>
<title>Description</title>
<para>
This function stores the <emphasis>parm</emphasis> and <emphasis>arg</emphasis> pointers in the
<link linkend="scasn1entry"><structname>struct sc_asn1_entry</structname></link>
<emphasis>entry</emphasis>. No checking is done. Since the pointers are copied directly, the
storage they point to must not be freed by the calling application until the entry itself is
destroyed.
</para>
</refsect1>
</refentry>