1gnutls_dh_get_pubkey(3)             gnutls             gnutls_dh_get_pubkey(3)
2
3
4

NAME

6       gnutls_dh_get_pubkey  - return the peer's public key used in DH authen‐
7       tication
8

SYNOPSIS

10       #include <gnutls/gnutls.h>
11
12       int  gnutls_dh_get_pubkey(gnutls_session_t  session,  gnutls_datum_t  *
13       raw_key);
14

ARGUMENTS

16       gnutls_session_t session
17                   is a gnutls session
18
19       gnutls_datum_t * raw_key
20                   will hold the public key.
21

DESCRIPTION

23       This  function  will  return  the  peer's  public  key used in the last
24       Diffie-Hellman authentication.  This function should be used  for  both
25       anonymous  and ephemeral Diffie-Hellman.  The output parameters must be
26       freed with gnutls_free().
27

RETURNS

29       On success, GNUTLS_E_SUCCESS (0) is returned, otherwise an  error  code
30       is returned.
31

REPORTING BUGS

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

SEE ALSO

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                               2.8.6             gnutls_dh_get_pubkey(3)
Impressum