Function

char * gnutls_mac_get_name (MACAlgorithm algorithm )

Arguments

MACAlgorithm algorithm
is a MAC algorithm

Description


Function

char * gnutls_compression_get_name (CompressionMethod algorithm )

Arguments

CompressionMethod algorithm
is a Compression algorithm

Description


Function

char * gnutls_cipher_get_name (BulkCipherAlgorithm algorithm )

Arguments

BulkCipherAlgorithm algorithm
is an encryption algorithm

Description


Function

char * gnutls_kx_get_name (KXAlgorithm algorithm )

Arguments

KXAlgorithm algorithm
is a key exchange algorithm

Description


Function

char * gnutls_version_get_name (GNUTLS_Version version )

Arguments

GNUTLS_Version version
is a (gnutls) version number

Description


Function

int gnutls_set_cred (GNUTLS_STATE state , CredType type , void* cred )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.
CredType type
is the type of the credentials
void* cred
is a pointer to a structure.

Description


Function

const void* gnutls_get_auth_info (GNUTLS_STATE state )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.

Description


Function

int gnutls_check_pending (GNUTLS_STATE state )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.

Description


Function

void gnutls_free_x509_sc (X509PKI_SERVER_CREDENTIALS sc )

Arguments

X509PKI_SERVER_CREDENTIALS sc
is an X509PKI_SERVER_CREDENTIALS structure.

Description


Function

int gnutls_allocate_x509_sc (X509PKI_SERVER_CREDENTIALS * res , char * CERTFILE , char * KEYFILE )

Arguments

X509PKI_SERVER_CREDENTIALS * res
is a pointer to an X509PKI_SERVER_CREDENTIALS structure.
char * CERTFILE
is the name of a PEM encoded certificate file
char * KEYFILE
is the name of a PEM encoded key file

Description

FIXME


Function

int gnutls_set_cache_expiration (GNUTLS_STATE state , int seconds )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.
int seconds
is the number of seconds.

Description


Function

int gnutls_set_db_name (GNUTLS_STATE state , char* filename )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.
char* filename
is the filename for the database

Description


Function

int gnutls_clean_db (GNUTLS_STATE state )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.

Description


Function

int gnutls_is_fatal_error (int error )

Arguments

int error
is an error returned by a gnutls function. Error is always a negative value.

Description


Function

void gnutls_perror (int error )

Arguments

int error
is an error returned by a gnutls function. Error is always a negative value.

Description


Function

char* gnutls_strerror (int error )

Arguments

int error
is an error returned by a gnutls function. Error is always a negative value.

Description


Function

int gnutls_global_init (char* PKIX , char* PKCS1 )

Arguments

char* PKIX
-- undescribed --
char* PKCS1
-- undescribed --

Description


Function

void gnutls_global_deinit ()

Arguments

Description


Function

int gnutls_rehandshake (SOCKET cd , GNUTLS_STATE state )

Arguments

SOCKET cd
is a connection descriptor, as returned by socket().
GNUTLS_STATE state
is a a GNUTLS_STATE structure.

Description


Function

int gnutls_handshake (SOCKET cd , GNUTLS_STATE state )

Arguments

SOCKET cd
is a connection descriptor, as returned by socket().
GNUTLS_STATE state
is a a GNUTLS_STATE structure.

Description


Function

void gnutls_set_cipher_priority (GNUTLS_STATE state , LIST )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.
LIST
is a 0 terminated list of BulkCipherAlgorithm elements.

Description


Function

void gnutls_set_kx_priority (GNUTLS_STATE state , LIST )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.
LIST
is a 0 terminated list of KXAlgorithm elements.

Description


Function

void gnutls_set_mac_priority (GNUTLS_STATE state , LIST )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.
LIST
is a 0 terminated list of MACAlgorithm elements.

Description


Function

void gnutls_set_compression_priority (GNUTLS_STATE state , LIST )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.
LIST
is a 0 terminated list of CompressionMethod elements.

Description


Function

int gnutls_set_lowat (GNUTLS_STATE state , int num )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.
int num
is the low water value.

Description


Function

int gnutls_init (GNUTLS_STATE * state , ConnectionEnd con_end )

Arguments

GNUTLS_STATE * state
is a pointer to a GNUTLS_STATE structure.
ConnectionEnd con_end
is used to indicate if this state is to be used for server or client. Can be one of GNUTLS_CLIENT and GNUTLS_SERVER.

Description


Function

int gnutls_deinit (GNUTLS_STATE state )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.

Description


Function

int gnutls_bye (SOCKET cd , GNUTLS_STATE state )

Arguments

SOCKET cd
is a connection descriptor.
GNUTLS_STATE state
is a GNUTLS_STATE structure.

Description


Function

int gnutls_bye_nowait (SOCKET cd , GNUTLS_STATE state )

Arguments

SOCKET cd
is a connection descriptor.
GNUTLS_STATE state
is a GNUTLS_STATE structure.

Description


Function

BulkCipherAlgorithm gnutls_get_current_cipher (GNUTLS_STATE state )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.

Description


Function

KXAlgorithm gnutls_get_current_kx (GNUTLS_STATE state )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.

Description


Function

MACAlgorithm gnutls_get_current_mac_algorithm (GNUTLS_STATE state )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.

Description


Function

CompressionMethod gnutls_get_current_compression_method (GNUTLS_STATE state )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.

Description


Function

AlertDescription gnutls_get_last_alert (GNUTLS_STATE state )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.

Description


Function

ssize_t gnutls_send (SOCKET cd , GNUTLS_STATE state , const void * data , size_t sizeofdata , int flags )

Arguments

SOCKET cd
is a connection descriptor
GNUTLS_STATE state
is a GNUTLS_STATE structure.
const void * data
contains the data to send
size_t sizeofdata
is the length of the data
int flags
contains the flags to pass to send() function.

Description


Function

ssize_t gnutls_recv (SOCKET cd , GNUTLS_STATE state , void * data , size_t sizeofdata , int flags )

Arguments

SOCKET cd
is a connection descriptor
GNUTLS_STATE state
is a GNUTLS_STATE structure.
void * data
contains the data to send
size_t sizeofdata
is the length of the data
int flags
contains the flags to pass to recv() function.

Description


Function

ssize_t gnutls_write (SOCKET cd , GNUTLS_STATE state , const void * data , size_t sizeofdata )

Arguments

SOCKET cd
is a connection descriptor
GNUTLS_STATE state
is a GNUTLS_STATE structure.
const void * data
contains the data to send
size_t sizeofdata
is the length of the data

Description


Function

ssize_t gnutls_read (SOCKET cd , GNUTLS_STATE state , void * data , size_t sizeofdata )

Arguments

SOCKET cd
is a connection descriptor
GNUTLS_STATE state
is a GNUTLS_STATE structure.
void * data
contains the data to send
size_t sizeofdata
is the length of the data

Description


Function

int gnutls_get_current_session (GNUTLS_STATE state , opaque* session , int * session_size )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.
opaque* session
is a pointer to space to hold the session.
int * session_size
is the session's size, or it will be set by the function.

Description


Function

int gnutls_get_current_session_id (GNUTLS_STATE state , void* session , int * session_size )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.
void* session
is a pointer to space to hold the session id.
int * session_size
is the session id's size, or it will be set by the function.

Description


Function

int gnutls_set_current_session (GNUTLS_STATE state , opaque* session , int session_size )

Arguments

GNUTLS_STATE state
is a GNUTLS_STATE structure.
opaque* session
is a pointer to space to hold the session.
int session_size
is the session's size

Description