package/librelp: bump to version 1.8.0

1.8.0 adds support for both openssl and gnutls

Signed-off-by: David GOUARIN <dgouarin@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
diff --git a/package/librelp/librelp.hash b/package/librelp/librelp.hash
index ac08039..bd66ad7 100644
--- a/package/librelp/librelp.hash
+++ b/package/librelp/librelp.hash
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  a34c8fc98bf8eef2a5baf635a0f71813cce93b1185aa03648e31b5af60b7393f  librelp-1.2.18.tar.gz
+sha256  cdbf49115fa530247358489864c5971c9f5a6442d19490e38f4c4ef844f1c264  librelp-1.8.0.tar.gz
 sha256  1ed76f935566e93e3c3c0d9f8fad22eb6d8bbe406e2eb8470a4a2764d9fd9685  COPYING
diff --git a/package/librelp/librelp.mk b/package/librelp/librelp.mk
index bcb4fe0..e9e879d 100644
--- a/package/librelp/librelp.mk
+++ b/package/librelp/librelp.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBRELP_VERSION = 1.2.18
+LIBRELP_VERSION = 1.8.0
 LIBRELP_SITE = http://download.rsyslog.com/librelp
 LIBRELP_LICENSE = GPL-3.0+
 LIBRELP_LICENSE_FILES = COPYING
@@ -17,4 +17,11 @@
 LIBRELP_CONF_OPTS += --disable-tls
 endif
 
+ifeq ($(BR2_PACKAGE_HAS_OPENSSL),y)
+LIBRELP_DEPENDENCIES += openssl host-pkgconf
+LIBRELP_CONF_OPTS += --enable-tls-openssl
+else
+LIBRELP_CONF_OPTS += --disable-tls-openssl
+endif
+
 $(eval $(autotools-package))