Show encryption library used in the help message (#851)

This commit is contained in:
rampageX
2016-09-27 21:57:43 -05:00
committed by Max Lv
parent fa4721bff4
commit 6e60e17224
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -215,7 +215,7 @@ void
usage()
{
printf("\n");
printf("shadowsocks-libev %s\n\n", VERSION);
printf("shadowsocks-libev %s with %s\n\n", VERSION, USING_CRYPTO);
printf(
" maintained by Max Lv <max.c.lv@gmail.com> and Linus Yang <laokongzi@gmail.com>\n\n");
printf(" usage:\n\n");
+15
View File
@@ -20,6 +20,21 @@
* <http://www.gnu.org/licenses/>.
*/
#if defined(USE_CRYPTO_OPENSSL)
#include <openssl/opensslv.h>
#define USING_CRYPTO OPENSSL_VERSION_TEXT
#elif defined(USE_CRYPTO_POLARSSL)
#include <polarssl/version.h>
#define USING_CRYPTO POLARSSL_VERSION_STRING_FULL
#elif defined(USE_CRYPTO_MBEDTLS)
#include <mbedtls/version.h>
#define USING_CRYPTO MBEDTLS_VERSION_STRING_FULL
#endif
#ifndef _UTILS_H
#define _UTILS_H