1SC_GET_CHALLENGE(3) OpenSC API reference SC_GET_CHALLENGE(3)
23
4
NAME
6sc_get_challenge - Request a challenge from a card
7
SYNOPSIS
9#include <opensc.h>
1011
int sc_get_challenge(struct sc_card *card, unsigned char *rnd, size_t len);
1213
14
DESCRIPTION
16This function requests a challenge (i.e. random bytes) from card. The
17returned data will be stored in rnd, and will be len bytes long.
18
RETURN VALUE
20Returns 0 if successful, or a negative value in case of error.
2122
23
24
opensc 05/04/2007 SC_GET_CHALLENGE(3)