Add mbed tls version in user agent string + set user agent properly when enabling openssl on macOS

This commit is contained in:
Benjamin Sergeant 2019-10-01 15:58:35 -07:00
parent a0cfaff528
commit 95dd03b298

View File

@ -46,7 +46,9 @@
#endif
// SSL
#if defined(IXWEBSOCKET_USE_OPEN_SSL)
#ifdef IXWEBSOCKET_USE_MBED_TLS
#include <mbedtls/version.h>
#elif defined(IXWEBSOCKET_USE_OPEN_SSL)
#include <openssl/opensslv.h>
#endif
@ -65,11 +67,11 @@ namespace ix
// TLS
#ifdef IXWEBSOCKET_USE_TLS
#ifdef IXWEBSOCKET_USE_MBED_TLS
ss << " ssl/mbedtls";
#elif __APPLE__
ss << " ssl/DarwinSSL";
ss << " ssl/mbedtls " << MBEDTLS_VERSION_STRING;
#elif defined(IXWEBSOCKET_USE_OPEN_SSL)
ss << " ssl/OpenSSL " << OPENSSL_VERSION_TEXT;
#elif __APPLE__
ss << " ssl/DarwinSSL";
#endif
#else
ss << " nossl";