gnutls_pkcs11_token_get_ptr(3)

gnutls_pkcs11_token_get_ptr3

Api function

Usage

#include <gnutls/pkcs11.h>

int gnutls_pkcs11_token_get_ptr(const char * url, void ** ptr, unsigned long * slot_id, unsigned int flags);

Arguments

const char * url

should contain a PKCS11 URL identifying a token

void ** ptr

will contain the CK_FUNCTION_LIST_PTR pointer

unsigned long * slot_id

will contain the slot_id (may be NULL)

unsigned int flags

should be zero

Overview

This function will return the function pointer of the specified token by the URL. The returned pointers are valid until gnutls is deinitialized, c.f. _global_deinit().

Returns

GNUTLS_E_SUCCESS (0) on success or a negative error code on error.

Since

3.6.3

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

Reporting bugs

Report bugs to <[email protected]>.
Home page: https://www.gnutls.org

From gnutls 3.8.13-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.