Function desfire::fs::create_ro_free_value_file

Function Documentation

result desfire::fs::create_ro_free_value_file(tag &tag, file_id fid, std::int32_t value)

Creates a read-only value file with free read access in the current application. The file can only be deleted afterwards, it is not possible to change its value. Reading does not require any authentication. This assumes the app is already selected, the user is already authenticated, if the security settings require so, and file fid does not exists. The caller is responsible for selecting the app and authenticating. No change in app and authentication is performed by this method.

Parameters:
  • tag – Tag on which to operate.

  • fid – The file id, in the range 0..7 (included).

  • value – Value of the file.

Returns:

Either mlab::result_success, or any of the error codes returned by tag::create_file.