MRTD scene for auth. read

This commit is contained in:
Chris van Marle
2022-10-11 22:13:26 +02:00
parent 8796195a63
commit c221c8947e
8 changed files with 108 additions and 11 deletions

View File

@@ -279,12 +279,13 @@ void mrtd_test(MrtdApplication* app, MrtdData* mrtd_data) {
*/
MrtdAuthMethod method = mrtd_data->auth.method;
mrtd_data->auth_success = false;
FURI_LOG_D(TAG, "Auth method: %d", method);
switch(method) {
case MrtdAuthMethodAny:
//TODO: try PACE, then BAC
case MrtdAuthMethodBac:
mrtd_bac(app, &mrtd_data->auth);
mrtd_data->auth_success = mrtd_bac(app, &mrtd_data->auth);
break;
case MrtdAuthMethodPace:
FURI_LOG_E(TAG, "Auth method PACE not implemented");

View File

@@ -36,6 +36,7 @@ typedef struct {
typedef struct {
MrtdAuthData auth;
bool auth_success;
} MrtdData;
typedef struct {