xref: /freebsd/crypto/krb5/doc/html/_sources/appdev/refs/api/krb5_responder_otp_get_challenge.rst.txt (revision 7f2fe78b9dd5f51c821d771b63d2e096f6fd49e9)
1krb5_responder_otp_get_challenge -  Decode the KRB5_RESPONDER_QUESTION_OTP to a C struct.
2==========================================================================================
3
4..
5
6.. c:function:: krb5_error_code krb5_responder_otp_get_challenge(krb5_context ctx, krb5_responder_context rctx, krb5_responder_otp_challenge ** chl)
7
8..
9
10
11:param:
12
13	          **[in]** **ctx** - Library context
14
15	          **[in]** **rctx** - Responder context
16
17	          **[out]** **chl** - Challenge structure
18
19
20..
21
22
23
24..
25
26
27
28
29
30
31
32A convenience function which parses the KRB5_RESPONDER_QUESTION_OTP question challenge data, making it available in native C. The main feature of this function is the ability to interact with OTP tokens without parsing the JSON.
33
34
35
36The returned value must be passed to krb5_responder_otp_challenge_free() to be freed.
37
38
39
40
41
42
43
44
45
46
47..
48
49
50
51
52.. note::
53
54	 New in 1.11
55
56
57