1CRYPTO_set_ex_data(3) OpenSSL CRYPTO_set_ex_data(3)
2
3
4
6 CRYPTO_set_ex_data, CRYPTO_get_ex_data - internal application specific
7 data functions
8
10 int CRYPTO_set_ex_data(CRYPTO_EX_DATA *r, int idx, void *arg);
11
12 void *CRYPTO_get_ex_data(CRYPTO_EX_DATA *r, int idx);
13
15 Several OpenSSL structures can have application specific data attached
16 to them. These functions are used internally by OpenSSL to manipulate
17 application specific data attached to a specific structure.
18
19 These functions should only be used by applications to manipulate
20 CRYPTO_EX_DATA structures passed to the new_func(), free_func() and
21 dup_func() callbacks: as passed to RSA_get_ex_new_index() for example.
22
23 CRYPTO_set_ex_data() is used to set application specific data, the data
24 is supplied in the arg parameter and its precise meaning is up to the
25 application.
26
27 CRYPTO_get_ex_data() is used to retrieve application specific data. The
28 data is returned to the application, this will be the same value as
29 supplied to a previous CRYPTO_set_ex_data() call.
30
32 CRYPTO_set_ex_data() returns 1 on success or 0 on failure.
33
34 CRYPTO_get_ex_data() returns the application data or 0 on failure. 0
35 may also be valid application data but currently it can only fail if
36 given an invalid idx parameter.
37
38 On failure an error code can be obtained from ERR_get_error(3).
39
41 RSA_get_ex_new_index(3), DSA_get_ex_new_index(3),
42 DH_get_ex_new_index(3)
43
45 CRYPTO_set_ex_data() and CRYPTO_get_ex_data() have been available since
46 SSLeay 0.9.0.
47
48
49
500.9.8b 2000-01-29 CRYPTO_set_ex_data(3)