1gnutls_x509_crt_get_preferred_hagsnhu_tallgsgn_ouxrt5il0ts9h_mc(r3t)_get_preferred_hash_algorithm(3)
2
3
4
6 gnutls_x509_crt_get_preferred_hash_algorithm - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crt_get_preferred_hash_algorithm(gnutls_x509_crt_t crt,
12 gnutls_digest_algorithm_t *
13 hash, unsigned int * mand);
14
16 gnutls_x509_crt_t crt
17 Holds the certificate
18
19 gnutls_digest_algorithm_t *
20 hash
21 The result of the call with the hash algorithm used for
22 signature
23
24 unsigned int * mand
25 If non zero it means that the algorithm MUST use this hash.
26 May be NULL.
27
29 This function will read the certifcate and return the appropriate
30 digest algorithm to use for signing with this certificate. Some cer‐
31 tificates (i.e. DSA might not be able to sign without the preferred
32 algorithm).
33
35 Please use gnutls_pubkey_get_preferred_hash_algorithm().
36
38 the 0 if the hash algorithm is found. A negative value is returned on
39 error.
40
42 2.11.0
43
45 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
46 http://www.gnu.org/software/gnutls/ General help using GNU software:
47 http://www.gnu.org/gethelp/
48
50 Copyright © 2008 Free Software Foundation.
51 Copying and distribution of this file, with or without modification,
52 are permitted in any medium without royalty provided the copyright
53 notice and this notice are preserved.
54
56 The full documentation for gnutls is maintained as a Texinfo manual.
57 If the info and gnutls programs are properly installed at your site,
58 the command
59
60 info gnutls
61
62 should give you access to the complete manual.
63
64
65
66gnutls gnut2l.s1_2x.560.91_crt_get_preferred_hash_algorithm(3)