Sha256: a6cebefdd607951136dfeb92607d2c2c5437a8106731c55979d20884ce97262c

Contents?: true

Size: 1.96 KB

Versions: 4

Compression:

Stored size: 1.96 KB

Contents

.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
.TH "gnutls_init" 3 "3.2.19" "gnutls" "gnutls"
.SH NAME
gnutls_init \- API function
.SH SYNOPSIS
.B #include <gnutls/gnutls.h>
.sp
.BI "int gnutls_init(gnutls_session_t * " session ", unsigned int " flags ");"
.SH ARGUMENTS
.IP "gnutls_session_t * session" 12
is a pointer to a \fBgnutls_session_t\fP structure.
.IP "unsigned int flags" 12
indicate if this session is to be used for server or client.
.SH "DESCRIPTION"
This function initializes the current session to null. Every
session must be initialized before use, so internal structures can
be allocated.  This function allocates structures which can only
be free'd by calling \fBgnutls_deinit()\fP.  Returns \fBGNUTLS_E_SUCCESS\fP (0) on success.

 \fIflags\fP can be one of \fBGNUTLS_CLIENT\fP and \fBGNUTLS_SERVER\fP. For a DTLS
entity, the flags \fBGNUTLS_DATAGRAM\fP and  \fBGNUTLS_NONBLOCK\fP are
also available. The latter flag will enable a non\-blocking
operation of the DTLS timers. 

The flag \fBGNUTLS_NO_REPLAY_PROTECTION\fP will disable any 
replay protection in DTLS mode. That must only used when 
replay protection is achieved using other means.

Note that since version 3.1.2 this function enables some common
TLS extensions such as session tickets and OCSP certificate status
request in client side by default. To prevent that use the \fBGNUTLS_NO_EXTENSIONS\fP
flag.
.SH "RETURNS"
\fBGNUTLS_E_SUCCESS\fP on success, or an error code.
.SH "REPORTING BUGS"
Report bugs to <bugs@gnutls.org>.
.br
Home page: http://www.gnutls.org

.SH COPYRIGHT
Copyright \(co 2001-2014 Free Software Foundation, Inc.
.br
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
.SH "SEE ALSO"
The full documentation for
.B gnutls
is maintained as a Texinfo manual.
If the /usr/share/doc/gnutls/
directory does not contain the HTML form visit
.B
.IP http://www.gnutls.org/manual/
.PP

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
glib2-2.2.5-x64-mingw32 vendor/local/share/man/man3/gnutls_init.3
glib2-2.2.5-x86-mingw32 vendor/local/share/man/man3/gnutls_init.3
glib2-2.2.4-x64-mingw32 vendor/local/share/man/man3/gnutls_init.3
glib2-2.2.4-x86-mingw32 vendor/local/share/man/man3/gnutls_init.3