pskc_set_key_reference(3)

๐Ÿ’… pskc_set_key_reference โ€” NAME

okay so bestie, welcome to libpskc โœจ this one's literally called pskc_set_key_reference, and it's an API function ๐ŸŽ€ that's it, that's the whole vibe of the name, iykyk ๐Ÿ’…


๐Ÿฆ‹ SYNOPSIS

#include <pskc.h>

void pskc_set_key_reference(pskc_key_t * key, const char * keyref);

like, you pull in the header, you call the function, done ๐Ÿซถ no cap.


๐ŸŒธ ARGUMENTS

  • pskc_key_t * key โ€” a pskc_key_t handle, the one you get from pskc_get_keypackage(). your main character pointer fr ๐Ÿ’–
  • const char * keyref โ€” a pointer to the key reference string you wanna set. yes it's just a pointer, hold that thought ๐Ÿ‘€

๐Ÿ’œ DESCRIPTION

so this function sets the PSKC KeyPackage Key KeyReference value. iconic, we love a straightforward assignment โœจ

but likeโ€ฆ listen to me ๐Ÿšจ the pointer is stored in the container โ€” it is NOT a copy of the data. so you absolutely must not deallocate the data before another call to this function, or before the last call to any function using the container. like, don't free it early, bestie, that's a one-way ticket to undefined-behaviour city and we are NOT going there ๐Ÿ˜ญ๐Ÿ’€


๐ŸŽ€ SINCE

2.2.0 โ€” she's been here a minute, a real veteran ๐Ÿ‘‘


๐ŸŒˆ REPORTING BUGS

found a bug? spill the tea to <oath-toolkit-help@nongnu.org> ๐Ÿ›๐Ÿ“ฎ


Copyright ยฉ 2009-2026 Simon Josefsson.

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. slay, open license, we stan ๐Ÿซถ


and that's the whole page, bestie ๐Ÿงš this was pskc_set_key_reference(3) from libpskc version 2.6.15 โ€” mwah, go forth and set those key references responsibly ๐Ÿ’…๐Ÿ’–

๐Ÿ“ฆ where this page comes from