1gnutls_pkcs11_token_check_mechanism(3g)nutlgsnutls_pkcs11_token_check_mechanism(3)
2
3
4

NAME

6       gnutls_pkcs11_token_check_mechanism - API function
7

SYNOPSIS

9       #include <gnutls/pkcs11.h>
10
11       unsigned gnutls_pkcs11_token_check_mechanism(const char * url, unsigned
12       long mechanism, void * ptr, unsigned psize, unsigned flags);
13

ARGUMENTS

15       const char * url
16                   should contain a PKCS 11 URL
17
18       unsigned long mechanism
19                   The PKCS 11 mechanism ID
20
21       void * ptr  if set it should point to a CK_MECHANISM_INFO struct
22
23       unsigned psize
24                   the size of CK_MECHANISM_INFO struct (for safety)
25
26       unsigned flags
27                   must be zero
28

DESCRIPTION

30       This function will return whether a mechanism is supported by the given
31       token. If the mechanism is supported and
32        ptr is set, it will be updated with the token information.
33

RETURNS

35       Non-zero if the mechanism is supported or zero otherwise.
36

SINCE

38       3.6.0
39

REPORTING BUGS

41       Report bugs to <bugs@gnutls.org>.
42       Home page: https://www.gnutls.org
43
44
46       Copyright © 2001- Free Software Foundation, Inc., and others.
47       Copying  and  distribution  of this file, with or without modification,
48       are permitted in any medium without royalty provided the copyright  no‐
49       tice and this notice are preserved.
50

SEE ALSO

52       The  full  documentation  for gnutls is maintained as a Texinfo manual.
53       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
54       visit
55
56       https://www.gnutls.org/manual/
57
58gnutls                               3.7.g8nutls_pkcs11_token_check_mechanism(3)
Impressum