extra

extra

Synopsis

#define             GNUTLS_EXTRA_VERSION
int                 gnutls_global_init_extra            (void);
int                 gnutls_register_md5_handler         (void);
const char *        gnutls_extra_check_version          (const char *req_version);

Description

Details

GNUTLS_EXTRA_VERSION

#define GNUTLS_EXTRA_VERSION GNUTLS_VERSION


gnutls_global_init_extra ()

int                 gnutls_global_init_extra            (void);

This function initializes the global state of gnutls-extra library to defaults.

Note that gnutls_global_init() has to be called before this function. If this function is not called then the gnutls-extra library will not be usable.

This function is not thread safe, see the discussion for gnutls_global_init() on how to deal with that.

Returns :

On success, GNUTLS_E_SUCCESS (zero) is returned, otherwise an error code is returned.

gnutls_register_md5_handler ()

int                 gnutls_register_md5_handler         (void);


gnutls_extra_check_version ()

const char *        gnutls_extra_check_version          (const char *req_version);

Check GnuTLS Extra Library version.

See GNUTLS_EXTRA_VERSION for a suitable req_version string.

req_version :

version string to compare with, or NULL.

Returns :

Check that the version of the library is at minimum the one given as a string in req_version and return the actual version string of the library; return NULL if the condition is not met. If NULL is passed to this function no check is done and only the version string is returned.