add library version getters

This commit is contained in:
toddouska 2015-04-10 10:38:31 -07:00
parent d40fbd58f4
commit ecfcc533c8
2 changed files with 20 additions and 0 deletions

View File

@ -9139,6 +9139,21 @@ const char* wolfSSL_get_version(WOLFSSL* ssl)
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)
{
WOLFSSL_ENTER("SSL_get_current_cipher_suite");

View File

@ -813,6 +813,11 @@ WOLFSSL_API int wolfSSL_Init(void);
/* call when done to cleanup/free session cache mutex / resources */
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 */
WOLFSSL_API int wolfSSL_Debugging_ON(void);
/* turn logging off */