table of contents
other versions
- wheezy-backports 3.3.8-6~bpo70+1
- jessie 3.3.8-6+deb8u5
- testing 3.5.8-5
- unstable 3.5.8-6
- experimental 3.5.13-1
gnutls_init(3) | gnutls | gnutls_init(3) |
NAME¶
gnutls_init - API functionSYNOPSIS¶
#include <gnutls/gnutls.h>ARGUMENTS¶
- gnutls_session_t * session
- is a pointer to a gnutls_session_t structure.
- unsigned int flags
- indicate if this session is to be used for server or client.
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 gnutls_deinit(). Returns GNUTLS_E_SUCCESS (0) on success.flags can be one of GNUTLS_CLIENT and GNUTLS_SERVER. For a DTLS entity, the flags GNUTLS_DATAGRAM and GNUTLS_NONBLOCK are also available. The latter flag will enable a non-blocking operation of the DTLS timers.
RETURNS¶
GNUTLS_E_SUCCESS on success, or an error code.REPORTING BUGS¶
Report bugs to <bugs@gnutls.org>.COPYRIGHT¶
Copyright © 2001-2014 Free Software Foundation, Inc..SEE ALSO¶
The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form visit3.3.8 | gnutls |