1gnutls_dh_get_group(3) gnutls gnutls_dh_get_group(3)
2
3
4
6 gnutls_dh_get_group - This function returns the group of the DH authen‐
7 tication
8
10 #include <gnutls/gnutls.h>
11
12 int gnutls_dh_get_group(gnutls_session_t session, gnutls_datum_t *
13 raw_gen, gnutls_datum_t * raw_prime);
14
16 gnutls_session_t session
17 is a gnutls session
18
19 gnutls_datum_t * raw_gen
20 will hold the generator.
21
22 gnutls_datum_t * raw_prime
23 will hold the prime.
24
26 This function will return the group parameters used in the last Diffie
27 Hellman authentication with the peer. These are the prime and the gen‐
28 erator used. This function should be used for both anonymous and
29 ephemeral diffie Hellman. The output parameters must be freed with
30 gnutls_free().
31
32 Returns a negative value in case of an error.
33
35 Report bugs to <bug-gnutls@gnu.org>.
36
38 Copyright © 2006 Free Software Foundation.
39 Permission is granted to make and distribute verbatim copies of this
40 manual provided the copyright notice and this permission notice are
41 preserved on all copies.
42
44 The full documentation for gnutls is maintained as a Texinfo manual.
45 If the info and gnutls programs are properly installed at your site,
46 the command
47
48 info gnutls
49
50 should give you access to the complete manual.
51
52
53
54gnutls 1.6.3 gnutls_dh_get_group(3)