pskc_set_device_userid(3)

okay so bestie, you opened pskc_set_device_userid(3) from the libpskc manual β€” and we’re about to make a DeviceInfo Userid moment happen ✨

🌸 NAME

pskc_set_device_userid β€” API function. That’s the whole name vibe: it’s the API function for setting a device userid. Periodt.

✨ SYNOPSIS

#include <pskc.h>

void pskc_set_device_userid(pskc_key_t * key, const char * userid);

πŸŽ€ ARGUMENTS

  • pskc_key_t * key β€” a pskc_key_t handle, from pskc_get_keypackage().
  • const char * userid β€” a string with user identity to set.

πŸ’– DESCRIPTION

okay so this sets the PSKC KeyPackage DeviceInfo Userid value. Translation: it indicates the user with whom the device is associated. Iconic little identity field, honestly.

the pointer is stored in the container, not a copy of the data. So you must not deallocate the data before another call to this function or the last call to any function using the container. That is not the vibe check you want to fail β€” do not free it early, bestie 😭

πŸ¦‹ SINCE

2.2.0

🌈 REPORTING BUGS

Report bugs to <oath-toolkit-help@nongnu.org>. libpskc home page: https://oath-toolkit.codeberg.page/ General help using GNU software: http://www.gnu.org/gethelp/

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.


with love from libpskc version 2.6.15, manual page pskc_set_device_userid(3) πŸ«ΆπŸ’–βœ¨ the footer has no date line, so no date is invented here πŸŽ€

πŸ“¦ where this page comes from