1SC_GET_CHALLENGE(3)          OpenSC API reference          SC_GET_CHALLENGE(3)
2
3
4

NAME

6       sc_get_challenge - Request a challenge from a card
7

SYNOPSIS

9          #include <opensc.h>
10
11          int sc_get_challenge(struct sc_card *card, unsigned char *rnd, size_t len);
12
13
14

DESCRIPTION

16       This function requests a challenge (i.e. random bytes) from card. The
17       returned data will be stored in rnd, and will be len bytes long.
18

RETURN VALUE

20       Returns 0 if successful, or a negative value in case of error.
21
22
23
24opensc                            05/04/2007               SC_GET_CHALLENGE(3)
Impressum