---
name: "gnutls_pkcs11_obj_list_import_url4"
section: "3"
platform: "linux"
package: "gnutls"
version: "3.8.13-3"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/gnutls_pkcs11_obj_list_import_url4"
---

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

API function

## NAME

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

## 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***);**

## ARGUMENTS

- gnutls\_pkcs11\_obj\_t \*\* p\_list

  An uninitialized object list (may be NULL)

- unsigned int \* n\_list

  It will contain the size of the list.

- const char \* url

  A PKCS 11 url identifying a set of objects

- unsigned int flags

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

## 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

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

## SINCE

3\.4.0

## REPORTING BUGS

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.

## 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/
