diff options
author | Radostin Stoyanov <rstoyanov1@gmail.com> | 2019-03-31 13:43:16 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2019-09-07 15:59:53 +0300 |
commit | b7230b6132b8eefb46da61ac158a99612d15dc10 (patch) | |
tree | 07c9c3e7e25f7276a2dbe854c4d832c21a282720 /Makefile.config | |
parent | ffec56803412afbb3f13d16d57101742e50984c6 (diff) |
make: config -- Link with GnuTLS
There are two notable open-source libraries that provide TLS
implementation - OpenSSL and GnuTLS. The license of OpenSSL
is incompatible with CRIU's license, and threfore GnuTLS is
the recommended choice.
GnuTLS offers an API to access secure communication protocols. These
protocols provide privacy over insecure lines, and are designed to
prevent eavesdropping, tampering or message forgery.
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
Diffstat (limited to 'Makefile.config')
-rw-r--r-- | Makefile.config | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.config b/Makefile.config index 008a82289..6f7324069 100644 --- a/Makefile.config +++ b/Makefile.config @@ -15,6 +15,14 @@ ifeq ($(call pkg-config-check,libselinux),y) FEATURE_DEFINES += -DCONFIG_HAS_SELINUX endif +ifeq ($(NO_GNUTLS)x$(call pkg-config-check,gnutls),xy) + LIBS_FEATURES += -lgnutls + export CONFIG_GNUTLS := y + FEATURE_DEFINES += -DCONFIG_GNUTLS +else + $(info Note: Building without GnuTLS support) +endif + export LIBS += $(LIBS_FEATURES) CONFIG_FILE = .config |