1pskc_set_key_data_b64secret(3) libpskc pskc_set_key_data_b64secret(3)
2
3
4
6 pskc_set_key_data_b64secret - API function
7
9 #include <pskc.h>
10
11 int pskc_set_key_data_b64secret(pskc_key_t * key, const char *
12 b64secret);
13
15 pskc_key_t * key
16 a pskc_key_t handle, from pskc_get_keypackage().
17
18 const char * b64secret
19 the base64 encoded secret to set.
20
22 Set the PSKC KeyPackage Key Data Secret value in base64 as a zero-ter‐
23 minated string. The b64secret data is copied into the key handle, so
24 you may modify or deallocate the b64secret pointer after calling this
25 function. The data is base64 decoded by this function to verify data
26 validity. On errors, the old secret is not modified.
27
29 PSKC_BASE64_ERROR on base64 decoding errors, PSKC_MALLOC_ERROR on mem‐
30 ory allocation errors, or PSKC_OK on success.
31
33 2.2.0
34
36 Report bugs to <oath-toolkit-help@nongnu.org>. libpskc home page:
37 http://www.gnu.org/software/libpskc/ General help using GNU software:
38 http://www.gnu.org/gethelp/
39
41 Copyright © 2012-2020 Simon Josefsson.
42 Copying and distribution of this file, with or without modification,
43 are permitted in any medium without royalty provided the copyright
44 notice and this notice are preserved.
45
46
47
48libpskc 2.6.6 pskc_set_key_data_b64secret(3)