File: gnutls_pkcs11_token_check_mechanism

package info (click to toggle)
gnutls28 3.8.9-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 83,872 kB
  • sloc: ansic: 388,071; asm: 117,804; sh: 18,477; makefile: 6,732; yacc: 1,858; python: 1,399; cpp: 1,243; perl: 995; sed: 16
file content (23 lines) | stat: -rw-r--r-- 727 bytes parent folder | download | duplicates (7)
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