2005-02-23 02:52:20 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<refentry id="sccardt">
|
2005-03-01 16:09:50 +00:00
|
|
|
<refentryinfo><title>OpenSC API Reference</title></refentryinfo>
|
2005-02-23 02:52:20 +00:00
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>sc_card_t</refentrytitle>
|
|
|
|
<manvolnum>3</manvolnum>
|
|
|
|
<refmiscinfo>opensc</refmiscinfo>
|
|
|
|
</refmeta>
|
|
|
|
|
|
|
|
<refnamediv>
|
|
|
|
<refname>sc_card_t</refname>
|
|
|
|
<refpurpose>OpenSC card structure</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Synopsis</title>
|
|
|
|
<para>
|
|
|
|
<programlisting>
|
2005-03-01 16:09:50 +00:00
|
|
|
#include <opensc.h>
|
2005-02-23 02:52:20 +00:00
|
|
|
|
2005-03-01 16:09:50 +00:00
|
|
|
#define SC_MAX_ATR_SIZE 33
|
2005-02-23 23:36:06 +00:00
|
|
|
#define SC_MAX_CARD_APPS 8
|
2005-02-23 02:52:20 +00:00
|
|
|
|
|
|
|
typedef struct sc_card {
|
|
|
|
struct sc_context *ctx;
|
|
|
|
struct sc_reader *reader;
|
|
|
|
struct sc_slot_info *slot;
|
2005-02-23 23:36:06 +00:00
|
|
|
struct sc_app_info *app[SC_MAX_CARD_APPS];
|
2005-02-23 02:52:20 +00:00
|
|
|
unsigned char atr[SC_MAX_ATR_SIZE];
|
2005-02-28 20:08:50 +00:00
|
|
|
size_t atr_len;
|
2005-02-23 02:52:20 +00:00
|
|
|
} sc_card_t;
|
|
|
|
|
|
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<para>
|
|
|
|
This structure describes a smart card object. It contains the following
|
|
|
|
members:
|
|
|
|
<variablelist>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><structfield>ctx</structfield></term>
|
|
|
|
<listitem><para>The context this card is associated with.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><structfield>reader</structfield></term>
|
|
|
|
<listitem><para>The reader this card is inserted into.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><structfield>slot</structfield></term>
|
|
|
|
<listitem><para>The slot on the reader this card is inserted into.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><structfield>atr</structfield></term>
|
|
|
|
<listitem><para>The ATR (Answer To Reset) of the card.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-02-28 20:08:50 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term><structfield>atr_len</structfield></term>
|
|
|
|
<listitem><para>The length of the <structfield>atr</structfield> field</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-02-23 02:52:20 +00:00
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
</refentry>
|