From ab3e72fd6e9adccf6384dacd3d12a7b54896f1be Mon Sep 17 00:00:00 2001 From: Leon Lynch Date: Wed, 17 Apr 2024 19:15:39 +0200 Subject: [PATCH] Relax the output buffer type for pcsc_reader_get_atr() --- src/pcsc.c | 2 +- src/pcsc.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pcsc.c b/src/pcsc.c index 57ecc7f..afb5f67 100644 --- a/src/pcsc.c +++ b/src/pcsc.c @@ -803,7 +803,7 @@ int pcsc_reader_disconnect(pcsc_reader_ctx_t reader_ctx) return 0; } -int pcsc_reader_get_atr(pcsc_reader_ctx_t reader_ctx, uint8_t* atr, size_t* atr_len) +int pcsc_reader_get_atr(pcsc_reader_ctx_t reader_ctx, void* atr, size_t* atr_len) { struct pcsc_reader_t* reader; diff --git a/src/pcsc.h b/src/pcsc.h index b86a88f..fce3f73 100644 --- a/src/pcsc.h +++ b/src/pcsc.h @@ -25,7 +25,6 @@ #include #include #include -#include __BEGIN_DECLS @@ -191,7 +190,7 @@ int pcsc_reader_disconnect(pcsc_reader_ctx_t reader_ctx); * @param atr_len Length of ATR output in bytes * @return Zero for success. Less than zero for error. Greater than zero if not available. */ -int pcsc_reader_get_atr(pcsc_reader_ctx_t reader_ctx, uint8_t* atr, size_t* atr_len); +int pcsc_reader_get_atr(pcsc_reader_ctx_t reader_ctx, void* atr, size_t* atr_len); /** * Transmit and receive data for current card in reader