gnutls_psk_for...ported_identity(3)
β¨ gnutls_psk_format_imported_identity β the glow-up era β¨
okay bestie, welcome to the gnutls manual, and specifically to gnutls_psk_format_imported_identity(3) π
this is a lil API function that takes your external PSK identity and gives it a whole new imported look, no cap. it's giving makeover montage, but for cryptographic identity blobs π
πΈ NAME πΈ
gnutls_psk_format_imported_identity β literally just an API function, bestie π
π¦ SYNOPSIS π¦
#include <gnutls/gnutls.h>
int gnutls_psk_format_imported_identity(const gnutls_datum_t * identity,
const gnutls_datum_t * context, gnutls_protocol_t version,
gnutls_digest_algorithm_t hash, gnutls_datum_t * imported_identity);
like yes, five arguments, she's high maintenance but she delivers π
π ARGUMENTS π
const gnutls_datum_t * identityβ the external identity, the main character we're about to transform β¨const gnutls_datum_t * contextβ optional contextual information. optional!! she can come or not, she's chill like that π¦gnutls_protocol_t versionβ the protocol version that this PSK is being imported to πΈgnutls_digest_algorithm_t hashβ the hash algorithm used for the KDF, iykyk π₯gnutls_datum_t * imported_identityβ where the imported identity gets stored, bestie. this is the output slot, the lil pedestal π
π« DESCRIPTION π«
so the way that this works: it formats an external PSK identity, identity, into an imported form β which RFC 9258 calls ImportedIdentity. that's it, that's the whole vibe β¨ no cap, she just reformats and hands it back to you looking fancy.
β οΈ real talk though: upon success, thedatafield ofimported_identityis allocated usinggnutls_malloc(), and the caller must free the memory after use. that memory is YOURS to clean up, bestie, don't leave her hanging π leaking memory is not the slay you think it is π
π RETURNS π
GNUTLS_E_SUCCESS (0) on success π otherwise a negative error code, which is the function's way of saying "not today" π
π SINCE π
3.8.1 β she's been around, she's an icon, she's established π
π£ REPORTING BUGS π£
found a bug? don't be shy, report it to <bugs@gnutls.org>. they want to hear from you, fr fr π«Ά
Home page: https://www.gnutls.org
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
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. periodt π
π₯ SEE ALSO π₯
The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit:
https://www.gnutls.org/manual/
and that's the whole page, bestie β¨ go forth and format those imported identities, you absolute legend π
mwah π this has been gnutls version 3.8.13, page gnutls_psk_for...ported_identity(3), signed off with love and a lil sparkle π
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms