1gnutls_session_set_premaster(3)     gnutls     gnutls_session_set_premaster(3)
2
3
4

NAME

6       gnutls_session_set_premaster - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int gnutls_session_set_premaster(gnutls_session_t session, unsigned int
12       entity, gnutls_protocol_t version, gnutls_kx_algorithm_t kx, gnutls_ci‐
13       pher_algorithm_t  cipher,  gnutls_mac_algorithm_t  mac, gnutls_compres‐
14       sion_method_t comp, const gnutls_datum_t * master, const gnutls_datum_t
15       * session_id);
16

ARGUMENTS

18       gnutls_session_t session
19                   is a gnutls_session_t type.
20
21       unsigned int entity
22                   GNUTLS_SERVER or GNUTLS_CLIENT
23
24       gnutls_protocol_t version
25                   the TLS protocol version
26
27       gnutls_kx_algorithm_t kx
28                   the key exchange method
29
30       gnutls_cipher_algorithm_t cipher
31                   the cipher
32
33       gnutls_mac_algorithm_t mac
34                   the MAC algorithm
35
36       gnutls_compression_method_t comp
37                   the compression method (ignored)
38
39       const gnutls_datum_t * master
40                   the master key to use
41
42       const gnutls_datum_t * session_id
43                   the session identifier
44

DESCRIPTION

46       This  function  sets the premaster secret in a session. This is a func‐
47       tion intended for exceptional uses. Do not use this function unless you
48       are  implementing a legacy protocol.  Use gnutls_session_set_data() in‐
49       stead.
50

RETURNS

52       On success, GNUTLS_E_SUCCESS (0) is returned, otherwise an  error  code
53       is returned.
54

REPORTING BUGS

56       Report bugs to <bugs@gnutls.org>.
57       Home page: https://www.gnutls.org
58
59
61       Copyright © 2001- Free Software Foundation, Inc., and others.
62       Copying  and  distribution  of this file, with or without modification,
63       are permitted in any medium without royalty provided the copyright  no‐
64       tice and this notice are preserved.
65

SEE ALSO

67       The  full  documentation  for gnutls is maintained as a Texinfo manual.
68       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
69       visit
70
71       https://www.gnutls.org/manual/
72
73gnutls                               3.7.6     gnutls_session_set_premaster(3)
Impressum