pskc_set_key_data_b64secret(3)
π pskc_set_key_data_b64secret(3) β the libpskc glow-up
okay so bestie, you're in the libpskc section 3 manpage zone β¨ this one function is literally the one that tucks your base64 secret into a key handle, and it's giving "small but mighty" π
β¨ NAME β¨
pskc_set_key_data_b64secret β the API function that sets your Key Data Secret as a base64 string π
πΈ SYNOPSIS πΈ
#include <pskc.h>
int pskc_set_key_data_b64secret(pskc_key_t * key, const char *
b64secret);
π¦ ARGUMENTS π¦
pskc_key_t * keyβ apskc_key_thandle, and you get it frompskc_get_keypackage(). that's the one, that's your main character π«Άconst char * b64secretβ the base64 encoded secret you want to set. yes queen, hand it over π
π DESCRIPTION π
so here's the tea β this function sets the PSKC KeyPackage Key Data Secret value in base64, as a zero-terminated string. periodt.
the b64secret data gets copied into the key handle, so after you call this you're totally free to modify or deallocate the b64secret pointer β it's not holding onto your pointer, no cap π
also, the data is base64 decoded right here by this function to verify data validity. lowkey a vibe check on your secret π₯ and on errors, the old secret is not modified β so nothing gets clowned, your previous value stays safe πβ
β RETURNS β
PSKC_BASE64_ERRORβ when the base64 decoding goes wrong πPSKC_MALLOC_ERRORβ when memory allocation goes wrong πPSKC_OKβ on success, slay π
π SINCE π
2.2.0 β she's been iconic since day one, iykyk π«
π REPORTING BUGS π
found a bug? bestie, report it 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 π
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. fr fr, that's the whole license vibe π«Ά
ngl this page is fromlibpskc, version2.6.15π§ and that's the wholepskc_set_key_data_b64secret(3)situation β go set those secrets, bestie, you're gonna ate πβ¨π
π¦ where this page comes from
- arch rolling: oath-toolkit 2.6.15-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms