parent
a6675eda70
commit
73a3eb7268
6 changed files with 10 additions and 12 deletions
|
@ -215,7 +215,7 @@ freefare_free_tag (MifareTag tag)
|
||||||
const char *
|
const char *
|
||||||
freefare_strerror (MifareTag tag)
|
freefare_strerror (MifareTag tag)
|
||||||
{
|
{
|
||||||
const char *p = "Unkown error";
|
const char *p = "Unknown error";
|
||||||
if (nfc_device_get_last_error (tag->device) < 0) {
|
if (nfc_device_get_last_error (tag->device) < 0) {
|
||||||
p = nfc_strerror (tag->device);
|
p = nfc_strerror (tag->device);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -103,7 +103,7 @@ function returns the error code returned by the last command run on
|
||||||
.Fn freefare_strerror
|
.Fn freefare_strerror
|
||||||
returns the error message,
|
returns the error message,
|
||||||
.Fn freefare_strerror_r
|
.Fn freefare_strerror_r
|
||||||
returns 0 on success, -1 on failure;
|
returns 0 on success, \-1 on failure;
|
||||||
.Fn mifare_desfire_last_pcd_error
|
.Fn mifare_desfire_last_pcd_error
|
||||||
and
|
and
|
||||||
.Fn mifare_desfire_last_picc_error
|
.Fn mifare_desfire_last_picc_error
|
||||||
|
|
|
@ -101,7 +101,7 @@ on the
|
||||||
.Vt tag
|
.Vt tag
|
||||||
and copy them into
|
and copy them into
|
||||||
.Vt buf.
|
.Vt buf.
|
||||||
The function returns the amount of data it copied, or -1 on error.
|
The function returns the amount of data it copied, or \-1 on error.
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
.Fn mifare_application_write
|
.Fn mifare_application_write
|
||||||
|
@ -115,7 +115,7 @@ on the
|
||||||
.Vt mad
|
.Vt mad
|
||||||
of the
|
of the
|
||||||
.Vt tag
|
.Vt tag
|
||||||
and returns the quantity of data written, or -1 on error.
|
and returns the quantity of data written, or \-1 on error.
|
||||||
.\" ___ _ _ _ _ _
|
.\" ___ _ _ _ _ _
|
||||||
.\" |_ _|_ __ ___ _ __ | | ___ _ __ ___ ___ _ __ | |_ __ _| |_(_) ___ _ __ _ __ ___ | |_ ___ ___
|
.\" |_ _|_ __ ___ _ __ | | ___ _ __ ___ ___ _ __ | |_ __ _| |_(_) ___ _ __ _ __ ___ | |_ ___ ___
|
||||||
.\" | || '_ ` _ \| '_ \| |/ _ \ '_ ` _ \ / _ \ '_ \| __/ _` | __| |/ _ \| '_ \ | '_ \ / _ \| __/ _ \/ __|
|
.\" | || '_ ` _ \| '_ \| |/ _ \ '_ ` _ \ / _ \ '_ \| __/ _` | __| |/ _ \| '_ \ | '_ \ / _ \| __/ _ \/ __|
|
||||||
|
|
|
@ -145,7 +145,7 @@ Value-blocks can be easily accessed using the
|
||||||
.Fn mifare_classic_read_value
|
.Fn mifare_classic_read_value
|
||||||
and
|
and
|
||||||
.Fn mifare_classic_init_value
|
.Fn mifare_classic_init_value
|
||||||
functions. Aditional functions are available for such
|
functions. Additional functions are available for such
|
||||||
.Vt blocks :
|
.Vt blocks :
|
||||||
.Fn mifare_classic_increment
|
.Fn mifare_classic_increment
|
||||||
and
|
and
|
||||||
|
|
|
@ -274,7 +274,7 @@ of the free memory on the PICC (in bytes).
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
.Fn mifare_desfire_set_configuration
|
.Fn mifare_desfire_set_configuration
|
||||||
function can be used to desactivate the format function when setting
|
function can be used to deactivate the format function when setting
|
||||||
.Vt disable_format
|
.Vt disable_format
|
||||||
to a value different from 0, or swicth the card to use random UDI setting
|
to a value different from 0, or swicth the card to use random UDI setting
|
||||||
.Vt enable_random_uid
|
.Vt enable_random_uid
|
||||||
|
@ -404,7 +404,7 @@ The
|
||||||
.Fn mifare_desfire_create_application_iso
|
.Fn mifare_desfire_create_application_iso
|
||||||
acts as the
|
acts as the
|
||||||
.Fn mifare_desfire_create_application
|
.Fn mifare_desfire_create_application
|
||||||
function but allows to specify if the created files within the application shall have an ISO file identifier setting
|
function but allows one to specify if the created files within the application shall have an ISO file identifier setting
|
||||||
.Vt want_iso_file_identifiers
|
.Vt want_iso_file_identifiers
|
||||||
to a non-NULL value, a DF can be provided using
|
to a non-NULL value, a DF can be provided using
|
||||||
.Vt iso_file_id ,
|
.Vt iso_file_id ,
|
||||||
|
|
|
@ -60,9 +60,7 @@ Mifare card manipulation library (libfreefare, \-lfreefare)
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The
|
The
|
||||||
.Fn mifare_desfire_aid_*
|
.Fn mifare_desfire_aid_*
|
||||||
functions allows management of Mifare DESFire AIDs.
|
functions allows management of Mifare DESFire AIDs. The
|
||||||
.Fn
|
|
||||||
The
|
|
||||||
.Fn mifare_desfire_aid_new
|
.Fn mifare_desfire_aid_new
|
||||||
function returns a new Mifare DESFire AID of value
|
function returns a new Mifare DESFire AID of value
|
||||||
.Vt aid .
|
.Vt aid .
|
||||||
|
@ -72,7 +70,7 @@ The
|
||||||
functions returns a new Mifare DESFire AID using a Mifare Classic AID
|
functions returns a new Mifare DESFire AID using a Mifare Classic AID
|
||||||
.Vt mad_aid
|
.Vt mad_aid
|
||||||
and
|
and
|
||||||
.Vt
|
.Vt n
|
||||||
as the last nibble of the new AID.
|
as the last nibble of the new AID.
|
||||||
.Pp
|
.Pp
|
||||||
Both
|
Both
|
||||||
|
|
Loading…
Reference in a new issue