GNUTLS_PKCS11_OBJ_LIST_IMPORT_URL3(3)
β¨ NAME β¨
gnutls_pkcs11_obj_list_import_url3 β bestie, it's an API function π
π¦ SYNOPSIS π¦
#include <gnutls/pkcs11.h>
int gnutls_pkcs11_obj_list_import_url3(gnutls_pkcs11_obj_t * p_list,
unsigned int * n_list, const char * url, unsigned int flags);
π ARGUMENTS π
gnutls_pkcs11_obj_t * p_listβ an object list that has not been initialized yet, and yeah, it's allowed to beNULL. no thoughts, just vibes πunsigned int * n_listβ when you hand it over, it should already hold the maximum size of the list. when it comes back? it holds the actual size. glow-up fr fr β¨const char * urlβ a PKCS 11 url that identifies a whole set of objects π«Άunsigned int flagsβ an or-sequence ofGNUTLS_PKCS11_OBJ_*flags, mix and match as you please π«
π DESCRIPTION π
okay so. this function initializes and sets values on an object list, using every single object that the PKCS 11 URL points at. it's giving "collect them all" energy π
it enumerates all the objects specified by the PKCS11 URL you provided. it expects an already-allocated p_list that has *n_list elements β and that value gets updated to the actual number of objects that are present. the p_list objects get initialized and set by this function, no cap. and if what you actually want is a list of every available object? just use a url of 'pkcs11:'. iconic, honestly. π
πΈ every single object that comes back must be deinitialized using gnutls_pkcs11_obj_deinit(). don't ghost them, bestie, that's a memory leak and it's not the moment.
the flags that this function supports 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,
GNUTLS_PKCS11_OBJ_FLAG_OVERWRITE_TRUSTMOD_EXTπ
and here's a lil history lesson for the lore girlies π: on versions of GnuTLS prior to 3.4.0, the equivalent function was gnutls_pkcs11_obj_list_import_url(). that one is also available on this version β as a macro that maps to this function. same energy, different name, slay π¦
π RETURNS π
on success you get GNUTLS_E_SUCCESS (0) back, and otherwise it's a negative error value. a win is a win, and a negative is a vibe check that did not pass π
β SINCE β
3.4.0
π§ REPORTING BUGS π§
found a bug? tell the people! 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. so true, so generous, we love to see it π
π 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 π«Ά this one lives in the gnutls manual, version 3.8.13 β go forth and enumerate your PKCS 11 objects, main character energy only β¨π
π
π¦ 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