gnutls_pkcs7_add_attr(3)
π gnutls_pkcs7_add_attr(3) π
okay so bestie, welcome to the gnutls manual page for gnutls_pkcs7_add_attr β it's literally the API function that adds a PKCS 7 attribute to a list, and we're gonna get you all the way together on it β¨
π NAME π
gnutls_pkcs7_add_attr β API function, no cap.
πΈ SYNOPSIS πΈ
#include <gnutls/pkcs7.h>
int gnutls_pkcs7_add_attr(gnutls_pkcs7_attrs_t * list, const char * oid,
gnutls_datum_t * data, unsigned flags);
π¦ ARGUMENTS π¦
gnutls_pkcs7_attrs_t * listβ a list of attributes you already have, or a pointer toNULLif this is the very first one π«Άconst char * oidβ the OID of the attribute you wanna set, periodtgnutls_datum_t * dataβ the raw, DER-encoded data of the attribute you're setting πunsigned flagsβ either zero, orGNUTLS_PKCS7_ATTR_ENCODE_OCTET_STRINGπ
β¨ DESCRIPTION β¨
This function will set a PKCS 7 attribute in the list you handed it. And heads up bestie β if this function fails, the previous list would be deallocated π so like, don't go reaching for it afterwards, it's gone.
Also, quick vibe check: any attributes you set with this function must either be DER or BER encoded, unless a special flag is present. iykyk.
π RETURNS π
On success, the new list head π β otherwise NULL. that's it, that's the return.
β SINCE β
3.4.2 β an icon, an OG, she's been here a minute π°οΈ
π REPORTING BUGS π
Found a bug? spill to <bugs@gnutls.org> π§
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. slay, honestly π«Ά
π₯ 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!! this one came from the gnutls manual, version 3.8.13, and yeah the footer said gnutls_pkcs7_add_attr(3) too β go forth and set those attributes, main character energy only π
β¨π¦
π¦ 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