Holds the certificate
gnutls_digest_algorithm_t * hash
The result of the call with the hash algorithm used
unsigned int * mand
If non zero it means that the algorithm MUST use this
hash. May be NULL.
This function will read the certificate and return the
appropriate digest algorithm to use for signing with this
certificate. Some certificates (i.e. DSA might not be able to
sign without the preferred algorithm).
To get the signature algorithm instead of just the hash use
gnutls_pk_to_sign() with the algorithm of the certificate/key and
the provided hash .
This page is part of the GnuTLS (GnuTLS Transport Layer Security
Library) project. Information about the project can be found at
⟨http://www.gnutls.org/⟩. If you have a bug report for this
manual page, send it to email@example.com. This page was obtained
from the tarball gnutls-3.7.2.tar.xz fetched from
⟨http://www.gnutls.org/download.html⟩ on 2021-08-27. If you
discover any rendering problems in this HTML version of the page,
or you believe there is a better or more up-to-date source for
the page, or you have corrections or improvements to the
information in this COLOPHON (which is not part of the original
manual page), send a mail to firstname.lastname@example.org