1gnutls_dh_set_prime_bits(3) gnutls gnutls_dh_set_prime_bits(3)
2
3
4
6 gnutls_dh_set_prime_bits - Used to set the bits for a DH ciphersuite
7
9 #include <gnutls/gnutls.h>
10
11 void gnutls_dh_set_prime_bits(gnutls_session_t session, unsigned int
12 bits);
13
15 gnutls_session_t session
16 is a gnutls_session_t structure.
17
18 unsigned int bits
19 is the number of bits
20
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
32 Report bugs to <bug-gnutls@gnu.org>.
33
35 Copyright © 2006 Free Software Foundation.
36 Permission is granted to make and distribute verbatim copies of this
37 manual provided the copyright notice and this permission notice are
38 preserved on all copies.
39
41 The full documentation for gnutls is maintained as a Texinfo manual.
42 If the info and gnutls programs are properly installed at your site,
43 the command
44
45 info gnutls
46
47 should give you access to the complete manual.
48
49
50
51gnutls 1.6.3 gnutls_dh_set_prime_bits(3)