Blame doc/functions/gnutls_pkcs11_crt_is_known

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {unsigned} {gnutls_pkcs11_crt_is_known} (const char * @var{url}, gnutls_x509_crt_t @var{cert}, unsigned int @var{flags})
Packit aea12f
@var{url}: A PKCS 11 url identifying a token
Packit aea12f
Packit aea12f
@var{cert}: is the certificate to find issuer for
Packit aea12f
Packit aea12f
@var{flags}: Use zero or flags from @code{GNUTLS_PKCS11_OBJ_FLAG} .
Packit aea12f
Packit aea12f
This function will check whether the provided certificate is stored
Packit aea12f
in the specified token. This is useful in combination with 
Packit aea12f
@code{GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_TRUSTED}  or
Packit aea12f
@code{GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_DISTRUSTED} ,
Packit aea12f
to check whether a CA is present or a certificate is blacklisted in
Packit aea12f
a trust PKCS @code{11}  module.
Packit aea12f
Packit aea12f
This function can be used with a  @code{url} of "pkcs11:", and in that case all modules
Packit aea12f
will be searched. To restrict the modules to the marked as trusted in p11-kit
Packit aea12f
use the @code{GNUTLS_PKCS11_OBJ_FLAG_PRESENT_IN_TRUSTED_MODULE}  flag.
Packit aea12f
Packit aea12f
Note that the flag @code{GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_DISTRUSTED}  is
Packit aea12f
specific to p11-kit trust modules.
Packit aea12f
Packit aea12f
@strong{Returns:} If the certificate exists non-zero is returned, otherwise zero.
Packit aea12f
Packit aea12f
@strong{Since:} 3.3.0
Packit aea12f
@end deftypefun