42 lines
1015 B
XML
42 lines
1015 B
XML
|
<refentry id="scenumapps">
|
||
|
<refmeta>
|
||
|
<refentrytitle>sc_enum_apps</refentrytitle>
|
||
|
<manvolnum>3</manvolnum>
|
||
|
<refmiscinfo>opensc</refmiscinfo>
|
||
|
</refmeta>
|
||
|
|
||
|
<refnamediv>
|
||
|
<refname>sc_enum_apps</refname>
|
||
|
<refpurpose>Enumerate the applications on a card</refpurpose>
|
||
|
</refnamediv>
|
||
|
|
||
|
<refsect1>
|
||
|
<title>Synopsis</title>
|
||
|
<para>
|
||
|
<programlisting>
|
||
|
#include <opensc.h>
|
||
|
|
||
|
int sc_enum_apps(struct sc_card *card);
|
||
|
</programlisting>
|
||
|
</para>
|
||
|
</refsect1>
|
||
|
|
||
|
<refsect1>
|
||
|
<title>Description</title>
|
||
|
<para>
|
||
|
This function enumerates the applications on <emphasis>card</emphasis>, and
|
||
|
stores them in the structure. The list of applications can then later be
|
||
|
searched with <link linkend="scfindappbyaid">sc_find_app_by_aid()</link> or
|
||
|
<link linkend="scfindpkcs15app">sc_find_pkcs15_app()</link>.
|
||
|
</para>
|
||
|
</refsect1>
|
||
|
|
||
|
<refsect1>
|
||
|
<title>Return value</title>
|
||
|
<para>
|
||
|
Returns the number of applications on the card, or a negative value in case
|
||
|
of error.
|
||
|
</para>
|
||
|
</refsect1>
|
||
|
</refentry>
|