1gnutls_pkcs11_token_get_ptr(3) gnutls gnutls_pkcs11_token_get_ptr(3)
2
3
4
6 gnutls_pkcs11_token_get_ptr - API function
7
9 #include <gnutls/pkcs11.h>
10
11 int gnutls_pkcs11_token_get_ptr(const char * url, void ** ptr, unsigned
12 long * slot_id, unsigned int flags);
13
15 const char * url
16 should contain a PKCS11 URL identifying a token
17
18 void ** ptr will contain the CK_FUNCTION_LIST_PTR pointer
19
20 unsigned long * slot_id
21 will contain the slot_id (may be NULL)
22
23 unsigned int flags
24 should be zero
25
27 This function will return the function pointer of the specified token
28 by the URL. The returned pointers are valid until gnutls is deinitial‐
29 ized, c.f. _global_deinit().
30
32 GNUTLS_E_SUCCESS (0) on success or a negative error code on error.
33
35 3.6.3
36
38 Report bugs to <bugs@gnutls.org>.
39 Home page: https://www.gnutls.org
40
41
43 Copyright © 2001-2019 Free Software Foundation, Inc., and others.
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright
46 notice and this notice are preserved.
47
49 The full documentation for gnutls is maintained as a Texinfo manual.
50 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
51 visit
52
53 https://www.gnutls.org/manual/
54
55gnutls 3.6.8 gnutls_pkcs11_token_get_ptr(3)