@@ -359,7 +359,7 @@ int emv_build_candidate_list(
359
359
return EMV_ERROR_INVALID_PARAMETER ;
360
360
}
361
361
362
- emv_debug_info ("SELECT Payment System Environment (PSE)" );
362
+ emv_debug_info ("Select Payment System Environment (PSE)" );
363
363
r = emv_tal_read_pse (ctx -> ttl , & ctx -> supported_aids , app_list );
364
364
if (r < 0 ) {
365
365
emv_debug_trace_msg ("emv_tal_read_pse() failed; r=%d" , r );
@@ -439,6 +439,7 @@ int emv_select_application(
439
439
ctx -> selected_app = NULL ;
440
440
}
441
441
442
+ emv_debug_info ("Select application index #%u" , index );
442
443
current_app = emv_app_list_remove_index (app_list , index );
443
444
if (!current_app ) {
444
445
emv_debug_trace_msg ("emv_app_list_remove_index() failed; index=%u" , index );
@@ -521,6 +522,8 @@ int emv_initiate_application_processing(
521
522
return EMV_ERROR_INVALID_PARAMETER ;
522
523
}
523
524
525
+ emv_debug_info ("Initiate application processing" );
526
+
524
527
// Clear existing ICC data and terminal data lists to avoid ambiguity
525
528
emv_tlv_list_clear (& ctx -> icc );
526
529
emv_tlv_list_clear (& ctx -> terminal );
@@ -803,6 +806,8 @@ int emv_read_application_data(struct emv_ctx_t* ctx)
803
806
return EMV_ERROR_INVALID_PARAMETER ;
804
807
}
805
808
809
+ emv_debug_info ("Read application data" );
810
+
806
811
// Application File Locator (AFL) is required to read application records
807
812
if (!ctx -> afl ) {
808
813
// AFL not found; terminate session
@@ -842,7 +847,7 @@ int emv_read_application_data(struct emv_ctx_t* ctx)
842
847
if (r ) {
843
848
emv_debug_trace_msg ("emv_tal_read_afl_records() failed; r=%d" , r );
844
849
if (r < 0 ) {
845
- emv_debug_error ("Error reading application data" );
850
+ emv_debug_error ("Error while reading application data" );
846
851
if (r == EMV_TAL_ERROR_INTERNAL || r == EMV_TAL_ERROR_INVALID_PARAMETER ) {
847
852
r = EMV_ERROR_INTERNAL ;
848
853
} else {
@@ -851,7 +856,7 @@ int emv_read_application_data(struct emv_ctx_t* ctx)
851
856
goto error ;
852
857
}
853
858
if (r != EMV_TAL_RESULT_ODA_RECORD_INVALID ) {
854
- emv_debug_error ("Failed to read application data" );
859
+ emv_debug_error ("Failure while reading application data" );
855
860
r = EMV_OUTCOME_CARD_ERROR ;
856
861
goto error ;
857
862
}
@@ -924,6 +929,8 @@ int emv_offline_data_authentication(struct emv_ctx_t* ctx)
924
929
return EMV_ERROR_INVALID_PARAMETER ;
925
930
}
926
931
932
+ emv_debug_info ("Offline data authentication" );
933
+
927
934
// Ensure mandatory configuration fields are present and have valid length
928
935
term_caps = emv_tlv_list_find_const (& ctx -> config , EMV_TAG_9F33_TERMINAL_CAPABILITIES );
929
936
if (!term_caps || term_caps -> length != 3 ) {
@@ -1000,6 +1007,8 @@ int emv_processing_restrictions(struct emv_ctx_t* ctx)
1000
1007
return EMV_ERROR_INVALID_PARAMETER ;
1001
1008
}
1002
1009
1010
+ emv_debug_info ("Processing restrictions" );
1011
+
1003
1012
// Ensure mandatory configuration fields are present and have valid length
1004
1013
term_app_version = emv_tlv_list_find_const (& ctx -> config , EMV_TAG_9F09_APPLICATION_VERSION_NUMBER_TERMINAL );
1005
1014
if (!term_app_version || term_app_version -> length != 2 ) {
@@ -1230,6 +1239,8 @@ int emv_terminal_risk_management(struct emv_ctx_t* ctx,
1230
1239
return EMV_ERROR_INVALID_PARAMETER ;
1231
1240
}
1232
1241
1242
+ emv_debug_info ("Terminal risk management" );
1243
+
1233
1244
// Ensure mandatory configuration fields are present and have valid length
1234
1245
term_floor_limit = emv_tlv_list_find_const (& ctx -> config , EMV_TAG_9F1B_TERMINAL_FLOOR_LIMIT );
1235
1246
if (!term_floor_limit || term_floor_limit -> length != 4 ) {
@@ -1569,6 +1580,8 @@ int emv_card_action_analysis(struct emv_ctx_t* ctx)
1569
1580
return EMV_ODA_ERROR_INVALID_PARAMETER ;
1570
1581
}
1571
1582
1583
+ emv_debug_info ("Card action analysis" );
1584
+
1572
1585
// Always decline offline for now until Terminal Action Analysis is fully
1573
1586
// implemented
1574
1587
ref_ctrl = EMV_TTL_GENAC_TYPE_AAC ;
0 commit comments