Skip to content

Commit

Permalink
Relax the output buffer type for pcsc_reader_get_atr()
Browse files Browse the repository at this point in the history
  • Loading branch information
leonlynch committed Apr 17, 2024
1 parent 8e11043 commit ab3e72f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pcsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 1 addition & 2 deletions src/pcsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <sys/cdefs.h>
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>

__BEGIN_DECLS

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ab3e72f

Please sign in to comment.