gnutls_pkcs7_get_embedded_data(3)
π gnutls_pkcs7_get_embedded_data(3) β the gnutls manual, bestie edition π
okay so this one lives in the gnutls manual and it's all about digging the embedded data out of a PKCS7 structure. it's giving "treasure hunt but the treasure is bytes" π
β¨ NAME β¨
gnutls_pkcs7_get_embedded_data β an API function, and yes it does exactly what it says on the tin π«Ά
πΈ SYNOPSIS πΈ
#include <gnutls/pkcs7.h>
int gnutls_pkcs7_get_embedded_data(gnutls_pkcs7_t pkcs7, unsigned flags,
gnutls_datum_t * data);
π¦ ARGUMENTS π¦
gnutls_pkcs7_t pkcs7β this one should contain agnutls_pkcs7_ttype, no capunsigned flagsβ must be zero orGNUTLS_PKCS7_EDATA_GET_RAW, those are literally the only options bestiegnutls_datum_t * dataβ will hold the embedded data in the provided structure, so it's the lil container that catches everything π
π DESCRIPTION π
so this function will return the data embedded in the signature of the PKCS7 structure. main character behaviour fr fr.
if no data are available then GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned. sad girl hours π
the returned data must be de-allocated using gnutls_free(). do NOT forget this β free your stuff, it's self care πΈ
note, that this function returns the exact same data that are authenticated. and if the GNUTLS_PKCS7_EDATA_GET_RAW flag is provided, the returned data will be including the wrapping tag/value as they are encoded in the structure. lowkey important detail, highkey iconic β¨
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. zero means slay, negative means go read the error π
π SINCE π
3.4.8 β an elder, but a legend π
π REPORTING BUGS π
report bugs to <bugs@gnutls.org>. home page: https://www.gnutls.org
(not me asking you to email the devs β but like, do it if you find one, they wanna know π«Ά)
π 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. so like, go off, just keep the receipts π
π 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/
iykyk π
psst β if you're ever confused, the /usr/share/doc/gnutls/ folder is your bestie. check it first, bestie check, vibe check, all of it. π§
and that's the whole page, periodt. this was gnutls 3.8.13, the gnutls_pkcs7_get_embedded_data(3) page, straight from the gnutls manual. no date on this one so I'm not gonna make one up β I keep the facts, not the fiction ππ
π¦ 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