diff options
author | Toni <matzeton@googlemail.com> | 2022-03-02 19:48:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-02 19:48:46 +0100 |
commit | cb62dfd24945f5732166ecb4121354adc48cec80 (patch) | |
tree | 99b704199af51e2819c8b1c6db3e37a75593698a /src/lib/third_party | |
parent | e23507d3e97ce37bb15be59de5195336595cdb17 (diff) |
Drop support for non-gcrypt builds. (#1469)
* As there is now a builtin, lightweight libgcrypt
there is no need to disable tls-clho decryption.
* It is still possible to use a host libgcrypt
with `--with-local-libgcrypt'.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/third_party')
-rw-r--r-- | src/lib/third_party/include/gcrypt_light.h | 2 | ||||
-rw-r--r-- | src/lib/third_party/src/gcrypt_light.c | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/third_party/include/gcrypt_light.h b/src/lib/third_party/include/gcrypt_light.h index 7f31f24a0..6d6a115ee 100644 --- a/src/lib/third_party/include/gcrypt_light.h +++ b/src/lib/third_party/include/gcrypt_light.h @@ -2,8 +2,6 @@ #ifndef GCRY_LIGHT_H #define GCRY_LIGHT_H -#define LIBGCRYPT_INTERNAL - #define HMAC_SHA256_DIGEST_SIZE 32 /* Same as SHA-256's output size. */ #define SHA256_DIGEST_SIZE 32 #define GCRY_MD_BUFF_SIZE 256 diff --git a/src/lib/third_party/src/gcrypt_light.c b/src/lib/third_party/src/gcrypt_light.c index ecd4b6fc4..c048e8704 100644 --- a/src/lib/third_party/src/gcrypt_light.c +++ b/src/lib/third_party/src/gcrypt_light.c @@ -8,8 +8,6 @@ #include "ndpi_api.h" -#if !defined(HAVE_LIBGCRYPT) - #if defined(__GNUC__) && \ ( defined(__amd64__) || defined(__x86_64__) ) && \ ! defined(MBEDTLS_HAVE_X86_64) @@ -372,6 +370,4 @@ gcry_error_t gcry_cipher_decrypt (gcry_cipher_hd_t h, return _gcry_cipher_crypt(h,out,outsize,in,inlen,0); } -#endif /* HAVE_LIBGCRYPT */ - /* vim: set ts=4 sw=4 et: */ |