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 type.
17
18       unsigned int bits
19                   is the number of bits
20

DESCRIPTION

22       This function sets the number of bits, for use in a 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       Note  that this function will warn via the audit log for value that are
32       believed to be weak.
33
34       The function has no effect in server side.
35
36       Note that since 3.1.7 this function is deprecated. The  minimum  number
37       of  bits  is set by the priority string level.  Also this function must
38       be called after gnutls_priority_set_direct() or the set  value  may  be
39       overridden by the selected priority options.
40

REPORTING BUGS

42       Report bugs to <bugs@gnutls.org>.
43       Home page: https://www.gnutls.org
44
45
47       Copyright © 2001-2019 Free Software Foundation, Inc., and others.
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 /usr/share/doc/gnutls/ directory does not contain the HTML  form
55       visit
56
57       https://www.gnutls.org/manual/
58
59gnutls                               3.6.7         gnutls_dh_set_prime_bits(3)
Impressum