1gnutls_session_get_master_secret(3) gnutls gnutls_session_get_master_secret(3)
2
3
4

NAME

6       gnutls_session_get_master_secret  -  get  the  session's  master secret
7       value
8

SYNOPSIS

10       #include <gnutls/gnutls.h>
11
12       const  void  *  gnutls_session_get_master_secret(gnutls_session_t  ses‐
13       sion);
14

ARGUMENTS

16       gnutls_session_t session
17                   is a gnutls_session_t structure.
18

DESCRIPTION

20       Return  a  pointer  to  the  48-byte master secret in the session.  The
21       pointer must not be modified or deallocated.
22
23       If a master secret value has not yet been established, the output  will
24       be garbage; in particular, a NULL return value should not be expected.
25
26       Consider  using  gnutls_prf()  rather than extracting the master secret
27       and use it to derive further data.
28

RETURNS

30       pointer to master secret data.
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_session_get_master_secret(3)
Impressum