1gnutls_dh_set_prime_bits(3)         gnutls         gnutls_dh_set_prime_bits(3)
2
3
4

NAME

6       gnutls_dh_set_prime_bits - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       void  gnutls_dh_set_prime_bits(gnutls_session_t  session,  unsigned int
12       bits);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_t structure.
17
18       unsigned int bits
19                   is the number of bits
20

DESCRIPTION

22       This function sets the number of bits, for use in an Diffie-Hellman key
23       exchange.   This  is  used both in DH ephemeral and DH anonymous cipher
24       suites.  This will set the minimum size of the prime that will be  used
25       for the handshake.
26
27       In  the  client side it sets the minimum accepted number of bits.  If a
28       server sends a prime with less bits than  that  GNUTLS_E_DH_PRIME_UNAC‐
29       CEPTABLE will be returned by the handshake.
30
31       This function has no effect in server side.
32

REPORTING BUGS

34       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
35       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
36       http://www.gnu.org/gethelp/
37
39       Copyright © 2008 Free Software Foundation.
40       Copying  and  distribution  of this file, with or without modification,
41       are permitted in any medium  without  royalty  provided  the  copyright
42       notice and this notice are preserved.
43

SEE ALSO

45       The  full  documentation  for gnutls is maintained as a Texinfo manual.
46       If the info and gnutls programs are properly installed  at  your  site,
47       the command
48
49              info gnutls
50
51       should give you access to the complete manual.
52
53
54
55gnutls                             2.12.6.1        gnutls_dh_set_prime_bits(3)
Impressum