gnutls\_pkcs11\_obj\_list\_import\_url4(3) gnutls gnutls\_pkcs11\_obj\_list\_import\_url4(3)

# [NAME](#NAME)

gnutls\_pkcs11\_obj\_list\_import\_url4 - API function

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;gnutls/pkcs11.h&gt;**

**int gnutls\_pkcs11\_obj\_list\_import\_url4(gnutls\_pkcs11\_obj\_t \** p\_list, unsigned int * n\_list, const char * url, unsigned int flags);**

# [ARGUMENTS](#ARGUMENTS)

[gnutls\_pkcs11\_obj\_t \** p\_list](#gnutls_pkcs11_obj_t)

An uninitialized object list (may be NULL)

[unsigned int * n\_list](#unsigned)

It will contain the size of the list.

[const char * url](#const)

A PKCS 11 url identifying a set of objects

[unsigned int flags](#unsigned~2)

Or sequence of GNUTLS\_PKCS11\_OBJ\_* flags

# [DESCRIPTION](#DESCRIPTION)

This function will enumerate all the objects specified by the PKCS**11** URL provided. It will initialize and set values to the object pointer list ( *p\_list* ) provided. To obtain a list of all available objects use a *url* of 'pkcs11:'.

All returned objects must be deinitialized using **gnutls\_pkcs11\_obj\_deinit()**, and *p\_list* must be deinitialized using **gnutls\_free()**.

The supported in this function *flags* are **GNUTLS\_PKCS11\_OBJ\_FLAG\_LOGIN**, **GNUTLS\_PKCS11\_OBJ\_FLAG\_LOGIN\_SO**, **GNUTLS\_PKCS11\_OBJ\_FLAG\_PRESENT\_IN\_TRUSTED\_MODULE**, **GNUTLS\_PKCS11\_OBJ\_FLAG\_CRT**, **GNUTLS\_PKCS11\_OBJ\_FLAG\_PUBKEY**, **GNUTLS\_PKCS11\_OBJ\_FLAG\_PRIVKEY**, **GNUTLS\_PKCS11\_OBJ\_FLAG\_WITH\_PRIVKEY**, **GNUTLS\_PKCS11\_OBJ\_FLAG\_MARK\_CA**, **GNUTLS\_PKCS11\_OBJ\_FLAG\_MARK\_TRUSTED**, and since 3.5.1 the **GNUTLS\_PKCS11\_OBJ\_FLAG\_OVERWRITE\_TRUSTMOD\_EXT**.

On versions of GnuTLS prior to 3.4.0 the equivalent function was **gnutls\_pkcs11\_obj\_list\_import\_url2()**. That is also available on this version as a macro which maps to this function.

# [RETURNS](#RETURNS)

On success, **GNUTLS\_E\_SUCCESS** (0) is returned, otherwise a negative error value.

# [SINCE](#SINCE)

3.4.0

# [REPORTING BUGS](#REPORTING_BUGS)

Report bugs to &lt;bugs@gnutls.org&gt;.  
Home page: https://www.gnutls.org

# [COPYRIGHT](#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.

# [SEE ALSO](#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/](https://www.gnutls.org/manual/)

3.8.13 gnutls

---

Document: gnutls_pkcs11_obj_list_import_url4(3) from gnutls 3.8.13-r1 (Chainguard OS)
Source: https://gitlab.com/gnutls/gnutls
