sc_app_info_t(3)

sc_app_info_t3

Opensc application structure

Usage

#include <opensc.h>
#define SC_MAX_AID_SIZE            16
typedef struct sc_app_info {
	unsigned char aid[SC_MAX_AID_SIZE];
	size_t aid_len;
	char *label;
	sc_path_t path;
	unsigned char *ddo;
	size_t ddo_len;
	const char *desc;
	int rec_nr;
} sc_app_info_t;

Overview

This structure describes a smart card application. It contains the following members:

aid

The applications´s AID. An AID uniquely identifies an application, and consists of an RID (a 5-byte "Registered Application Provider Identifier") and a PIX, which identifies an application by that provider. For example, the RID for PKCS#15 consists of the bytes A0 00 00 00 63, and the PIX is the string "PKCS-15". Thus, the AID of a PKCS#15 application on a smart card is A0 00 00 00 63 50 4B 43 53 2D 31.

aid_len

The length of the AID in bytes.

label

A UTF-8 string describing the application.

path

The application´s full path on the card, starting at the MF.

ddo

ddo_len

desc

A description of the application, if available.

rec_nr

If the EF(DIR) file is record-structured, this has the record number in which this application is stored. Otherwise, this is -1.

Releases

3 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0
  3. 6.0

From libopensc2-dev 0.11.13-1.1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.