GNUTLS_PRIVKEY_IMPORT_OPENPGP_RAW(3)

✨ gnutls_privkey_import_openpgp_raw(3) ✨

okay bestie, buckle up πŸ’– this one lives in the gnutls manual (yes, the whole manpage family), and it's a short one β€” but the plot twist is chef's kiss iconic. let's get into it πŸŽ€


🌸 NAME 🌸

gnutls_privkey_import_openpgp_raw β€” it's an API function, babes. that's the whole name. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <gnutls/abstract.h>

int gnutls_privkey_import_openpgp_raw(gnutls_privkey_t pkey, const
       gnutls_datum_t * data, gnutls_openpgp_crt_fmt_t format, const
       gnutls_openpgp_keyid_t keyid, const char * password);

yes the line breaks are doing the most, that's just how the header file vibes ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_privkey_t pkey β€” the private key, aka the main character of this whole situation πŸ‘‘
  • const gnutls_datum_t * data β€” the actual private key data you're trying to import πŸ“¦
  • gnutls_openpgp_crt_fmt_t format β€” what format that private key is in, gotta label it fr fr 🏷️
  • const gnutls_openpgp_keyid_t keyid β€” the key id to use. it's optional, so no pressure bestie πŸ’…
  • const char * password β€” a password. also optional. so casual πŸ“

πŸ’€ DESCRIPTION πŸ’€

so here's the thing. this function is a no-op. like... it does nothing. it's giving ghosting, it's giving "read at 3:47pm and never replied." you call it, it does not do the thing. not me warning you before you spend an hour debugging your key import 😭


⭐ RETURNS ⭐

GNUTLS_E_UNIMPLEMENTED_FEATURE. β€” yeah. that's the whole return value. it's telling you the feature isn't implemented. periodt. πŸ’…


🌈 SINCE 🌈

3.1.0 β€” it's been around since 3.1.0, so it's an OG even though it does absolutely nothing. iconic in a cursed way ngl 🫢


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? spill the tea to <bugs@gnutls.org> πŸ“§

home page is right here: https://www.gnutls.org


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 yes, you can share it, just keep the receipts bestie πŸ§ΎπŸ’–


πŸ”₯ 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, go visit:

https://www.gnutls.org/manual/

iykyk πŸ’œ


k bye bestie, that's the whole page β€” this was gnutls version 3.8.13, brought to you by the gnutls_privkey_import_openpgp_raw(3) era, and fr fr it's a function that does nothing and says so with its whole chest. slay, i guess πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from