Add some ifdefs for ccid.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2022-12-29 02:07:42 +01:00
parent 87bdea7e28
commit 4fe29750f2
No known key found for this signature in database
GPG Key ID: C0095B7870A4CCD3
2 changed files with 6 additions and 0 deletions

View File

@ -30,7 +30,9 @@
#include "mbedtls/hkdf.h"
#include "pk_wrap.h"
#include "crypto_utils.h"
#ifdef ITF_CCID
#include "ccid.h"
#endif
#include <math.h>
#include <stdio.h>
@ -63,7 +65,9 @@ app_t *fido_select(app_t *a, const uint8_t *aid, uint8_t aid_len) {
}
void __attribute__ ((constructor)) fido_ctor() {
#ifdef ITF_CCID
ccid_atr = atr_fido;
#endif
register_app(fido_select);
}

View File

@ -30,7 +30,9 @@
#include "mbedtls/hkdf.h"
#include "pk_wrap.h"
#include "crypto_utils.h"
#ifdef ITF_CCID
#include "ccid.h"
#endif
#include "version.h"
#include "asn1.h"
#include <stdio.h>