gnutls_pkcs11_obj_set_info(3)

πŸ’– gnutls_pkcs11_obj_set_info β€” the glow-up page πŸ’–

okay bestie, so this one lives in the gnutls manual, and it's literally the function that lets you change stuff on a PKCS#11 object instead of just staring at it. giving makeover energy fr fr. ✨


🌸 NAME 🌸

gnutls_pkcs11_obj_set_info β€” API function

no cap, that's the whole name section, she's lowkey mysterious like that.


πŸŽ€ SYNOPSIS πŸŽ€

#include <gnutls/pkcs11.h>

int gnutls_pkcs11_obj_set_info(gnutls_pkcs11_obj_t obj,
gnutls_pkcs11_obj_info_t itype, const void * data, size_t data_size,
unsigned flags);

like, copy it exactly, don't freestyle it πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_pkcs11_obj_t obj β€” should contain a gnutls_pkcs11_obj_t type. that's the object you're about to glam up πŸ’–
  • gnutls_pkcs11_obj_info_t itype β€” Denotes the type of information to be set. basically: which attribute are we touching today?
  • const void * data β€” the data to set. the actual content, the moment, the main character ✨
  • size_t data_size β€” the size of data. yes bestie, you gotta tell it how big your data is, it's not psychic 😭
  • unsigned flags β€” Or sequence of GNUTLS_PKCS11_OBJ_* flags. stack 'em, or don't, your call 🫢

🌈 DESCRIPTION 🌈

This function will set attributes on the provided object. Available options for itype are GNUTLS_PKCS11_OBJ_LABEL, GNUTLS_PKCS11_OBJ_ID_HEX, and GNUTLS_PKCS11_OBJ_ID.

that's it, that's the vibe check. three itypes, no more, no less. don't go inventing a fourth one, i'm begging πŸ™ˆ


⭐ RETURNS ⭐

GNUTLS_E_SUCCESS (0) on success or a negative error code on error.

so like β€” 0 means slay, negative means we're crying in the group chat πŸ’€


πŸ‘‘ SINCE πŸ‘‘

3.4.0

og status. been here since 3.4.0, iconic behavior honestly.


πŸ“ REPORTING BUGS πŸ“

Report bugs to <bugs@gnutls.org>.

Home page: https://www.gnutls.org

fr fr, if something's broken, tell the maintainers, not me, i'm just the messenger 🧚


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.


πŸ”₯ 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 set some attributes and be the main character of your own PKCS#11 token πŸ’…βœ¨

this was gnutls version 3.8.13, page gnutls_pkcs11_obj_set_info(3) β€” mwah, drink water, read the docs, love u πŸ«ΆπŸ’–

πŸ“¦ where this page comes from