GnuTLS API Reference Manual | ||||
---|---|---|---|---|
Top | Description |
#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
);
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. |
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.
|
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. |