Blame doc/functions/gnutls_pkcs11_get_raw_issuer_by_subject_key_id

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_pkcs11_get_raw_issuer_by_subject_key_id} (const char * @var{url}, const gnutls_datum_t * @var{dn}, const gnutls_datum_t * @var{spki}, gnutls_datum_t * @var{issuer}, gnutls_x509_crt_fmt_t @var{fmt}, unsigned int @var{flags})
Packit aea12f
@var{url}: A PKCS 11 url identifying a token
Packit aea12f
Packit aea12f
@var{dn}: is the DN to search for (may be @code{NULL} )
Packit aea12f
Packit aea12f
@var{spki}: is the subject key ID to search for
Packit aea12f
Packit aea12f
@var{issuer}: Will hold the issuer if any in an allocated buffer.
Packit aea12f
Packit aea12f
@var{fmt}: The format of the exported issuer.
Packit aea12f
Packit aea12f
@var{flags}: Use zero or flags from @code{GNUTLS_PKCS11_OBJ_FLAG} .
Packit aea12f
Packit aea12f
This function will return the certificate with the given DN and  @code{spki} , if it
Packit aea12f
is stored in the token. By default only marked as trusted issuers
Packit aea12f
are returned. If any issuer should be returned specify
Packit aea12f
@code{GNUTLS_PKCS11_OBJ_FLAG_RETRIEVE_ANY}  in  @code{flags} .
Packit aea12f
Packit aea12f
The name of the function includes issuer because it can
Packit aea12f
be used to discover issuers of certificates.
Packit aea12f
Packit aea12f
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit aea12f
negative error value.
Packit aea12f
Packit aea12f
@strong{Since:} 3.4.2
Packit aea12f
@end deftypefun