gnutls_x509_crt_import_url(3)
β¨ gnutls_x509_crt_import_url β the API function β¨
okay bestie, sit down, hydrate, and let me tell you about this lil function from the gnutls manual. no cap, it's a good one. π
πΈ NAME πΈ
gnutls_x509_crt_import_url β it's an API function, bestie. that's the whole name, that's the whole vibe. π
π¦ SYNOPSIS π¦
like, here's how you actually call it. copy it exactly, don't freestyle:
#include <gnutls/x509.h>
int gnutls_x509_crt_import_url(gnutls_x509_crt_t crt, const char * url,
unsigned int flags);
π ARGUMENTS π
three of them. count 'em. we love a tidy signature.
gnutls_x509_crt_t crtβ a certificate of typegnutls_x509_crt_t. that's your little certificate girlie, she's the one getting the glow-up here.const char * urlβ a PKCS 11 url. yes, a url. the certificate lives somewhere and this is the address, iykyk.unsigned int flagsβ one of theGNUTLS_PKCS11_OBJ_*flags, but only if you're doing PKCS11 URLs. otherwise? just pass zero and move on with your life. β¨
π DESCRIPTION π
so the way this works is: this function will import a certificate that's hanging out in a PKCS11 token, or honestly in any type of back-end that supports URLs. it's flexible like that. main character energy, truly. π
and here's a lil lore drop for the history girlies: in previous versions of gnutls, this function was named gnutls_x509_crt_import_pkcs11_url. the old name is still out there, and it's just an alias to this one. so if you see the old name in the wild, don't panic β it's the same girl, different era. π¦
β RETURNS β
- on success:
GNUTLS_E_SUCCESS(which is0) is returned. we love a zero. π₯³ - otherwise: a negative error value. not a vibe, but at least it's honest.
π SINCE π
3.4.0 β she's been here a minute, she's not new. respect the elders. π
π REPORTING BUGS π
found a bug? don't be shy, tell the gnutls girlies directly:
- report bugs to
<bugs@gnutls.org> - home page:
https://www.gnutls.org
fr fr, reporting bugs is a public service. you're doing the community a solid. π«Ά
π 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.
that means: keep the notice, keep the notice, and you're free to pass it around. slay. π
π 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/
like, go read it. it's giving educational. πβ¨
and that's the page, bestie!! πΈ this was gnutls 3.8.13, and the manual page is gnutls_x509_crt_import_url(3) β so if you ever need to cite it, that's your girl. go import a certificate, you're doing amazing, periodt. ππ¦ππ₯
π¦ 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