1gnutls_init(3)                      gnutls                      gnutls_init(3)
2
3
4

NAME

6       gnutls_init - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int gnutls_init(gnutls_session_t * session, unsigned int flags);
12

ARGUMENTS

14       gnutls_session_t * session
15                   is a pointer to a gnutls_session_t type.
16
17       unsigned int flags
18                   indicate  if  this  session  is  to  be  used for server or
19                   client.
20

DESCRIPTION

22       This function initializes the provided session. Every session  must  be
23       initialized before use, and must be deinitialized after used by calling
24       gnutls_deinit().
25
26        flags can be any combination of flags from gnutls_init_flags_t.
27
28       Note that since version 3.1.2 this function enables some common TLS ex‐
29       tensions such as session tickets and OCSP certificate status request in
30       client side by default. To prevent that  use  the  GNUTLS_NO_EXTENSIONS
31       flag.
32

RETURNS

34       GNUTLS_E_SUCCESS on success, or an error code.
35

REPORTING BUGS

37       Report bugs to <bugs@gnutls.org>.
38       Home page: https://www.gnutls.org
39
40
42       Copyright © 2001- Free Software Foundation, Inc., and others.
43       Copying  and  distribution  of this file, with or without modification,
44       are permitted in any medium without royalty provided the copyright  no‐
45       tice and this notice are preserved.
46

SEE ALSO

48       The  full  documentation  for gnutls is maintained as a Texinfo manual.
49       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
50       visit
51
52       https://www.gnutls.org/manual/
53
54gnutls                               3.7.8                      gnutls_init(3)
Impressum