GNUTLS_PKCS11_OBJ_LIST_IMPORT_URL4(3)
β¨ gnutls_pkcs11_obj_list_import_url4 β¨
okay bestie, so this is a page from the gnutls manual β the gnutls_pkcs11_obj_list_import_url4(3) entry, to be exact. it's a whole API function and it's lowkey iconic. let's get into it π
πΈ NAME πΈ
gnutls_pkcs11_obj_list_import_url4 β an API function. yes girl, that's the whole name, and it's a long one, we respect it π«Ά
β¨ SYNOPSIS β¨
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_obj_list_import_url4(gnutls_pkcs11_obj_t ** p_list,
unsigned int * n_list, const char * url, unsigned int flags);
like, look at her. five arguments. main character energy fr fr π
π ARGUMENTS π
gnutls_pkcs11_obj_t ** p_listβ an uninitialized object list. and yeah, it may beNULL, no cap.unsigned int * n_listβ this lil guy is gonna end up holding the size of the list. that's its whole job. slay.const char * urlβ a PKCS 11 url that identifies a set of objects. like a little address for your faves.unsigned int flagsβ an or sequence ofGNUTLS_PKCS11_OBJ_*flags. mix and match, it's giving build-your-own-adventure π«
π DESCRIPTION π
so what does she actually do? this function enumerates all the objects specified by the PKCS11 URL you hand her. it will initialize and set values to the object pointer list (p_list) you provided. and if you want a list of all available objects, just use a url of 'pkcs11:'. that's the cheat code, iykyk π₯
β οΈ important bestie moment: all returned objects must be deinitialized usinggnutls_pkcs11_obj_deinit(), andp_listmust be deinitialized usinggnutls_free(). don't forget, or it's leak city π
the supported flags in this function are:
GNUTLS_PKCS11_OBJ_FLAG_LOGINGNUTLS_PKCS11_OBJ_FLAG_LOGIN_SOGNUTLS_PKCS11_OBJ_FLAG_PRESENT_IN_TRUSTED_MODULEGNUTLS_PKCS11_OBJ_FLAG_CRTGNUTLS_PKCS11_OBJ_FLAG_PUBKEYGNUTLS_PKCS11_OBJ_FLAG_PRIVKEYGNUTLS_PKCS11_OBJ_FLAG_WITH_PRIVKEYGNUTLS_PKCS11_OBJ_FLAG_MARK_CAGNUTLS_PKCS11_OBJ_FLAG_MARK_TRUSTED- and since 3.5.1, also
GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXT
also, lore drop π§: on versions of GnuTLS prior to 3.4.0, the equivalent function was gnutls_pkcs11_obj_list_import_url2(). and that one is also available on this version β as a macro which maps to this function. cute, right? a little throwback that still works π
β RETURNS β
on success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value. that's the vibe check result, bestie π
π¦ SINCE π¦
3.4.0 β she's been around a minute, and she's still thriving.
π REPORTING BUGS π
found a bug? don't suffer in silence, report it:
- report bugs 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. generous queen behavior 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 β no details left behind, every flag accounted for, periodt π β¨
gnutls version 3.8.13, dated right there in the footer with the gnutls_pkcs11_obj_list_import_url4(3) title. mwah, go forth and enumerate ππ¦π
π¦ 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