| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_pkcs11_init} (unsigned int @var{flags}, const char * @var{deprecated_config_file}) |
| 6 |
@var{flags}: An ORed sequence of @code{GNUTLS_PKCS11_FLAG_} * |
| 7 |
|
| 8 |
@var{deprecated_config_file}: either NULL or the location of a deprecated |
| 9 |
configuration file |
| 10 |
|
| 11 |
This function will initialize the PKCS 11 subsystem in gnutls. It will |
| 12 |
read configuration files if @code{GNUTLS_PKCS11_FLAG_AUTO} is used or allow |
| 13 |
you to independently load PKCS 11 modules using @code{gnutls_pkcs11_add_provider()} |
| 14 |
if @code{GNUTLS_PKCS11_FLAG_MANUAL} is specified. |
| 15 |
|
| 16 |
You don't need to call this function since GnuTLS 3.3.0 because it is being called |
| 17 |
during the first request PKCS 11 operation. That call will assume the @code{GNUTLS_PKCS11_FLAG_AUTO} |
| 18 |
flag. If another flags are required then it must be called independently |
| 19 |
prior to any PKCS 11 operation. |
| 20 |
|
| 21 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a |
| 22 |
negative error value. |
| 23 |
|
| 24 |
@strong{Since:} 2.12.0 |
| 25 |
@end deftypefun |