1SC_SELECT_FILE(3)            OpenSC API reference            SC_SELECT_FILE(3)
2
3
4

NAME

6       sc_select_file - Select a file on a smart card
7

SYNOPSIS

9          #include <opensc.h>
10
11          int sc_select_file(sc_card_t *card,
12                             const sc_path_t *path,
13                             sc_file_t **result);
14
15
16
17

DESCRIPTION

19       This function selects the file specified by path. If path specifies a
20       file within the currently selected DF, sc_select_file() will not select
21       the MF first, but interpret the path relative to the current DF. It
22       does this in order to prevent losing any authorizations previously
23       established with the card (e.g. by presenting a PIN).
24
25       If result is not NULL, an sc_file_t object is created, and the pointer
26       to this object is stored in the location pointed to by result. This
27       handle should later be released using sc_file_free().
28

RETURN VALUE

30       If an error occurred, a negative error code is returned. Otherwise, the
31       function will return 0.
32
33
34
35opensc                            05/04/2007                 SC_SELECT_FILE(3)
Impressum