opensc/doc/api/card/sc_format_apdu.xml

39 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<refentry id="scformatapdu">
<refentryinfo><title>OpenSC API Reference</title></refentryinfo>
<refmeta>
<refentrytitle>sc_format_apdu</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>opensc</refmiscinfo>
</refmeta>
<refnamediv>
<refname>sc_format_apdu</refname>
<refpurpose>Populate an APDU structure</refpurpose>
</refnamediv>
<refsect1>
<title>Synopsis</title>
<para>
<programlisting>
#include &lt;opensc.h&gt;
void sc_format_apdu(struct sc_card *card, sc_apdu_t *apdu,
int cse, int ins, int p1, int p2);
</programlisting>
</para>
</refsect1>
<refsect1>
<title>Description</title>
<para>
This function populates the <link linkend="scapdut">sc_apdu_t</link> structure
pointed to by <emphasis>apdu</emphasis> on <emphasis>card</emphasis>. It does
not allocate memory. The <emphasis>cse</emphasis>, <emphasis>ins</emphasis>,
<emphasis>p1</emphasis> and <emphasis>p2</emphasis> parameters correspond to
the respective APDU parameters as described in the <link
linkend="iso7816">ISO 7816</link> standard.
</para>
</refsect1>
</refentry>