1gnutls_pubkey_get_preferred_hash_aglnguogtrnliustt_hlpmsu(b3k)ey_get_preferred_hash_algorithm(3)
2
3
4

NAME

6       gnutls_pubkey_get_preferred_hash_algorithm - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int   gnutls_pubkey_get_preferred_hash_algorithm(gnutls_pubkey_t   key,
12       gnutls_digest_algorithm_t                                             *
13       hash, unsigned int * mand);
14

ARGUMENTS

16       gnutls_pubkey_t key
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

DESCRIPTION

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

RETURNS

35       the  0  if the hash algorithm is found. A negative value is returned on
36       error.
37

SINCE

39       2.11.0
40

REPORTING BUGS

42       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
43       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
44       http://www.gnu.org/gethelp/
45
47       Copyright © 2008 Free Software Foundation.
48       Copying and distribution of this file, with  or  without  modification,
49       are  permitted  in  any  medium  without royalty provided the copyright
50       notice and this notice are preserved.
51

SEE ALSO

53       The full documentation for gnutls is maintained as  a  Texinfo  manual.
54       If  the  info  and gnutls programs are properly installed at your site,
55       the command
56
57              info gnutls
58
59       should give you access to the complete manual.
60
61
62
63gnutls                           gn2u.t1l2s._6p.u1bkey_get_preferred_hash_algorithm(3)
Impressum