Browse Source

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

pull/849/merge
rampageX 8 years ago
committed by Max Lv
parent
commit
6e60e17224
2 changed files with 16 additions and 1 deletions
  1. 2
      src/utils.c
  2. 15
      src/utils.h

2
src/utils.c

@ -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
src/utils.h

@ -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

Loading…
Cancel
Save