mirror of
https://gitlab.com/fabinfra/fabaccess/FabFire-Provisioning-Tool.git
synced 2025-03-12 23:01:53 +01:00
make token freely readable
This commit is contained in:
parent
9106688900
commit
3974d6a8e9
@ -184,7 +184,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
println!("created space info file");
|
println!("created space info file");
|
||||||
|
|
||||||
// create file with token
|
// create file with token
|
||||||
let token_accessrights = generate_file_access_rights(0x01, 0x00, 0x00, 0x00)?;
|
let token_accessrights = generate_file_access_rights(FileAccessRights::FREE as u8, 0x00, 0x00, 0x00)?;
|
||||||
desfire.create_file_standard(0x03, FileCommunication::PLAIN, token_accessrights, token.as_bytes().len() as u32)?;
|
desfire.create_file_standard(0x03, FileCommunication::PLAIN, token_accessrights, token.as_bytes().len() as u32)?;
|
||||||
desfire.write_data(0x03, 0x00, token.as_bytes())?;
|
desfire.write_data(0x03, 0x00, token.as_bytes())?;
|
||||||
println!("created token file");
|
println!("created token file");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user