forked from wolfSSL/wolfssl
add library version getters
This commit is contained in:
15
src/ssl.c
15
src/ssl.c
@ -9139,6 +9139,21 @@ const char* wolfSSL_get_version(WOLFSSL* ssl)
|
|||||||
return "unknown";
|
return "unknown";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* current library version */
|
||||||
|
const char* wolfSSL_lib_version(void)
|
||||||
|
{
|
||||||
|
return LIBWOLFSSL_VERSION_STRING;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* current library version in hex */
|
||||||
|
word32 wolfSSL_lib_version_hex(void)
|
||||||
|
{
|
||||||
|
return LIBWOLFSSL_VERSION_HEX;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int wolfSSL_get_current_cipher_suite(WOLFSSL* ssl)
|
int wolfSSL_get_current_cipher_suite(WOLFSSL* ssl)
|
||||||
{
|
{
|
||||||
WOLFSSL_ENTER("SSL_get_current_cipher_suite");
|
WOLFSSL_ENTER("SSL_get_current_cipher_suite");
|
||||||
|
@ -813,6 +813,11 @@ WOLFSSL_API int wolfSSL_Init(void);
|
|||||||
/* call when done to cleanup/free session cache mutex / resources */
|
/* call when done to cleanup/free session cache mutex / resources */
|
||||||
WOLFSSL_API int wolfSSL_Cleanup(void);
|
WOLFSSL_API int wolfSSL_Cleanup(void);
|
||||||
|
|
||||||
|
/* which library version do we have */
|
||||||
|
WOLFSSL_API const char* wolfSSL_lib_version(void);
|
||||||
|
/* which library version do we have in hex */
|
||||||
|
WOLFSSL_API unsigned int wolfSSL_lib_version_hex(void);
|
||||||
|
|
||||||
/* turn logging on, only if compiled in */
|
/* turn logging on, only if compiled in */
|
||||||
WOLFSSL_API int wolfSSL_Debugging_ON(void);
|
WOLFSSL_API int wolfSSL_Debugging_ON(void);
|
||||||
/* turn logging off */
|
/* turn logging off */
|
||||||
|
Reference in New Issue
Block a user