diff --git a/src/fido/ctap2_cbor.h b/src/fido/ctap2_cbor.h index 2935d97..8a897a0 100644 --- a/src/fido/ctap2_cbor.h +++ b/src/fido/ctap2_cbor.h @@ -29,6 +29,7 @@ extern int cbor_process(const uint8_t *data, size_t len); extern int cbor_reset(); extern int cbor_get_info(); extern int cbor_make_credential(const uint8_t *data, size_t len); +extern int cbor_client_pin(const uint8_t *data, size_t len); extern const uint8_t aaguid[16]; extern const bool _btrue, _bfalse; @@ -41,7 +42,7 @@ extern const bool _btrue, _bfalse; error = f; \ if (error != CborNoError) \ { \ - printf("Cannot encode CBOR [%d]: %s\n", __LINE__, #f); \ + printf("Cannot encode CBOR [%s:%d]: %s\n", __FILE__, __LINE__, #f); \ goto err; \ } \ } while (0) @@ -60,7 +61,7 @@ extern const bool _btrue, _bfalse; do \ { \ error = e; \ - printf("Cbor ERROR [%d]: %d\n", __LINE__, e); \ + printf("Cbor ERROR [%s:%d]: %d\n", __FILE__, __LINE__, e); \ goto err; \ } while(0) @@ -70,7 +71,7 @@ extern const bool _btrue, _bfalse; if (!c) \ { \ error = CborErrorImproperValue; \ - printf("Cbor ASSERT [%d]: %s\n", __LINE__, #c); \ + printf("Cbor ASSERT [%s:%d]: %s\n", __FILE__, __LINE__, #c); \ goto err; \ } \ } while(0)