mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
remove debug and small output addon. errors was not visible
This commit is contained in:
parent
673c080ea5
commit
09c5f0ef76
2 changed files with 2 additions and 3 deletions
|
@ -998,7 +998,6 @@ int ExchangeAPDU14a(uint8_t *datain, int datainlen, bool activateField, bool lea
|
||||||
bool chaining = false;
|
bool chaining = false;
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
printf("framelen=%d datainlen=%d\n", frameLength, datainlen);
|
|
||||||
// 3 byte here - 1b framing header, 2b crc16
|
// 3 byte here - 1b framing header, 2b crc16
|
||||||
if (APDUInFramingEnable &&
|
if (APDUInFramingEnable &&
|
||||||
( (frameLength && (datainlen > frameLength - 3)) || (datainlen > USB_CMD_DATA_SIZE - 3)) ) {
|
( (frameLength && (datainlen > frameLength - 3)) || (datainlen > USB_CMD_DATA_SIZE - 3)) ) {
|
||||||
|
|
|
@ -250,9 +250,9 @@ int FIDOCheckDERAndGetKey(uint8_t *der, size_t derLen, bool verbose, uint8_t *pu
|
||||||
uint32_t verifyflags = 0;
|
uint32_t verifyflags = 0;
|
||||||
res = mbedtls_x509_crt_verify(&cert, &cacert, NULL, NULL, &verifyflags, NULL, NULL);
|
res = mbedtls_x509_crt_verify(&cert, &cacert, NULL, NULL, &verifyflags, NULL, NULL);
|
||||||
if (res) {
|
if (res) {
|
||||||
PrintAndLog("ERROR: DER verify returned 0x%x - %s", (res<0)?-res:res, ecdsa_get_error(res));
|
PrintAndLog("ERROR: DER verify returned 0x%x - %s\n", (res<0)?-res:res, ecdsa_get_error(res));
|
||||||
} else {
|
} else {
|
||||||
PrintAndLog("Certificate OK.");
|
PrintAndLog("Certificate OK.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue