1pskc_set_key_data_secret(3)         libpskc        pskc_set_key_data_secret(3)
2
3
4

NAME

6       pskc_set_key_data_secret - API function
7

SYNOPSIS

9       #include <pskc.h>
10
11       int  pskc_set_key_data_secret(pskc_key_t  *  key,  const  char  * data,
12       size_t len);
13

ARGUMENTS

15       pskc_key_t * key
16                   a pskc_key_t handle, from pskc_get_keypackage().
17
18       const char * data
19                   the byte array with the key to set, of len length.
20
21       size_t len  length of data byte array.
22

DESCRIPTION

24       Set the PSKC KeyPackage Key Data Secret value.  The data data is copied
25       into  the  key handle, so you may modify or deallocate the data pointer
26       after calling this function.  The data is base64 encoded by this  func‐
27       tion.  On errors, the old secret is not modified.
28

RETURNS

30       PSKC_BASE64_ERROR  on base64 encoding errors, PSKC_MALLOC_ERROR on mem‐
31       ory allocation errors, or PSKC_OK on success.
32

SINCE

34       2.2.0
35

REPORTING BUGS

37       Report bugs  to  <oath-toolkit-help@nongnu.org>.   libpskc  home  page:
38       https://www.nongnu.org/oath-toolkit/  General  help using GNU software:
39       http://www.gnu.org/gethelp/
40
42       Copyright © 2012-2020 Simon Josefsson.
43       Copying and distribution of this file, with  or  without  modification,
44       are  permitted in any medium without royalty provided the copyright no‐
45       tice and this notice are preserved.
46
47
48
49libpskc                              2.6.7         pskc_set_key_data_secret(3)
Impressum