mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-21 05:43:23 -07:00
Add support for standard USB Smartcard Readers (#765)
* add PCSC interface (pcsc.c and pcsc.h) * new command 'sc select' to choose an USB Smartcard Reader * updated CI/.travis.yml accordingly * remove TCK CRC check in i2c.c It is done in PrintATR() anyway * Fix TCK CRC check in PrintATR() * Add PCSC reader support to 'sc info'
This commit is contained in:
parent
1511ea28a8
commit
a9104f7e31
14 changed files with 382 additions and 93 deletions
22
client/pcsc.h
Normal file
22
client/pcsc.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// Copyright (C) 2019 piwi
|
||||
//
|
||||
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
||||
// at your option, any later version. See the LICENSE.txt file for the text of
|
||||
// the license.
|
||||
//-----------------------------------------------------------------------------
|
||||
// PCSC functions to use alternative Smartcard Readers
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef PCSC_H__
|
||||
#define PCSC_H__
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "smartcard.h"
|
||||
|
||||
char *getAlternativeSmartcardReader(void);
|
||||
bool pcscCheckForCardReaders(void);
|
||||
bool pcscSelectAlternativeCardReader(const char *readername);
|
||||
bool pcscGetATR(smart_card_atr_t *card);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue