1gnutls_pkcs11_obj_get_ptr(3) gnutls gnutls_pkcs11_obj_get_ptr(3)
2
3
4
6 gnutls_pkcs11_obj_get_ptr - API function
7
9 #include <gnutls/pkcs11.h>
10
11 int gnutls_pkcs11_obj_get_ptr(gnutls_pkcs11_obj_t obj, void ** ptr,
12 void ** session, void ** ohandle, unsigned long * slot_id, unsigned int
13 flags);
14
16 gnutls_pkcs11_obj_t obj
17 should contain a gnutls_pkcs11_obj_t type
18
19 void ** ptr will contain the CK_FUNCTION_LIST_PTR pointer (may be NULL)
20
21 void ** session
22 will contain the CK_SESSION_HANDLE of the object
23
24 void ** ohandle
25 will contain the CK_OBJECT_HANDLE of the object
26
27 unsigned long * slot_id
28 the identifier of the slot (may be NULL)
29
30 unsigned int flags
31 Or sequence of GNUTLS_PKCS11_OBJ_* flags
32
34 Obtains the PKCS11 session handles of an object. session and ohandle
35 must be deinitialized by the caller. The returned pointers are indepen‐
36 dent of the obj lifetime.
37
39 GNUTLS_E_SUCCESS (0) on success or a negative error code on error.
40
42 3.6.3
43
45 Report bugs to <bugs@gnutls.org>.
46 Home page: http://www.gnutls.org
47
48
50 Copyright © 2001-2018 Free Software Foundation, Inc., and others.
51 Copying and distribution of this file, with or without modification,
52 are permitted in any medium without royalty provided the copyright
53 notice and this notice are preserved.
54
56 The full documentation for gnutls is maintained as a Texinfo manual.
57 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
58 visit
59
60 http://www.gnutls.org/manual/
61
62gnutls 3.6.5 gnutls_pkcs11_obj_get_ptr(3)