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 a gnutls_pkcs7_t type, no cap
  • unsigned flags β€” must be zero or GNUTLS_PKCS7_EDATA_GET_RAW, those are literally the only options bestie
  • gnutls_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 Β© 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