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
29       extensions  such as session tickets and OCSP certificate status request
30       in 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: http://www.gnutls.org
39
40
42       Copyright © 2001-2018 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
45       notice 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       http://www.gnutls.org/manual/
53
54gnutls                               3.6.5                      gnutls_init(3)
Impressum