comparison pcsc/atrmain.c @ 2:11f4f8a8fa33

pcsc: ATR code refactoring
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 14 Mar 2021 01:22:37 +0000
parents f7a03e53bb2c
children
comparison
equal deleted inserted replaced
1:f7a03e53bb2c 2:11f4f8a8fa33
14 setup_pcsc_context(); 14 setup_pcsc_context();
15 get_reader_list(); 15 get_reader_list();
16 select_reader_by_num(); 16 select_reader_by_num();
17 printf("Card reader name: %s\n", selected_reader); 17 printf("Card reader name: %s\n", selected_reader);
18 connect_to_card(); 18 connect_to_card();
19 retrieve_atr(1); 19 retrieve_atr("ATR:");
20 SCardDisconnect(hCard, SCARD_UNPOWER_CARD); 20 SCardDisconnect(hCard, SCARD_UNPOWER_CARD);
21 SCardReleaseContext(hContext); 21 SCardReleaseContext(hContext);
22 exit(0); 22 exit(0);
23 } 23 }