1gnutls_x509_crt_get_preferred_hagsnhu_tallgsgn_ouxrt5il0ts9h_mc(r3t)_get_preferred_hash_algorithm(3)
2
3
4

NAME

6       gnutls_x509_crt_get_preferred_hash_algorithm - API function
7

SYNOPSIS

9       #include <gnutls/compat.h>
10
11       int gnutls_x509_crt_get_preferred_hash_algorithm(gnutls_x509_crt_t crt,
12       gnutls_digest_algorithm_t *           hash, unsigned int * mand);
13

ARGUMENTS

15       gnutls_x509_crt_t crt
16                   Holds the certificate
17
18       gnutls_digest_algorithm_t *           hash
19                   The result of the call with the  hash  algorithm  used  for
20                   signature
21
22       unsigned int * mand
23                   If non-zero it means that the algorithm MUST use this hash.
24                   May be NULL.
25

DESCRIPTION

27       This function will read the  certificate  and  return  the  appropriate
28       digest  algorithm  to  use for signing with this certificate. Some cer‐
29       tificates (i.e.  DSA might not be able to sign  without  the  preferred
30       algorithm).
31

DEPRECATED

33       Please use gnutls_pubkey_get_preferred_hash_algorithm().
34

RETURNS

36       the 0 if the hash algorithm is found. A negative error code is returned
37       on error.
38

SINCE

40       2.12.0
41

REPORTING BUGS

43       Report bugs to <bugs@gnutls.org>.
44       Home page: http://www.gnutls.org
45
46
48       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
49       Copying and distribution of this file, with  or  without  modification,
50       are  permitted  in  any  medium  without royalty provided the copyright
51       notice and this notice are preserved.
52

SEE ALSO

54       The full documentation for gnutls is maintained as  a  Texinfo  manual.
55       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
56       visit
57
58       http://www.gnutls.org/manual/
59
60gnutls                         gnutls3_.x65.059_crt_get_preferred_hash_algorithm(3)
Impressum