blob: a9f6ec8fafd74abd8261421964e8256aee1cdbe4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
@deftypefun {unsigned} {gnutls_pkcs11_token_check_mechanism} (const char * @var{url}, unsigned long @var{mechanism}, void * @var{ptr}, unsigned @var{psize}, unsigned @var{flags})
@var{url}: should contain a PKCS 11 URL
@var{mechanism}: The PKCS @code{11} mechanism ID
@var{ptr}: if set it should point to a CK_MECHANISM_INFO struct
@var{psize}: the size of CK_MECHANISM_INFO struct (for safety)
@var{flags}: must be zero
This function will return whether a mechanism is supported
by the given token. If the mechanism is supported and
@code{ptr} is set, it will be updated with the token information.
@strong{Returns:} Non-zero if the mechanism is supported or zero otherwise.
@strong{Since:} 3.6.0
@end deftypefun
|