| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_pkcs11_token_get_ptr} (const char * @var{url}, void ** @var{ptr}, unsigned long * @var{slot_id}, unsigned int @var{flags}) |
| 6 |
@var{url}: should contain a PKCS@code{11} URL identifying a token |
| 7 |
|
| 8 |
@var{ptr}: will contain the CK_FUNCTION_LIST_PTR pointer |
| 9 |
|
| 10 |
@var{slot_id}: will contain the slot_id (may be @code{NULL} ) |
| 11 |
|
| 12 |
@var{flags}: should be zero |
| 13 |
|
| 14 |
This function will return the function pointer of the specified |
| 15 |
token by the URL. The returned pointers are valid until |
| 16 |
gnutls is deinitialized, c.f. @code{_global_deinit()} . |
| 17 |
|
| 18 |
@strong{Returns:} @code{GNUTLS_E_SUCCESS} (0) on success or a negative error code |
| 19 |
on error. |
| 20 |
|
| 21 |
@strong{Since:} 3.6.3 |
| 22 |
@end deftypefun |