libsrtp: use OpenSSL 764/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Sat, 30 Apr 2022 15:57:54 +0000 (17:57 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sat, 30 Apr 2022 16:14:42 +0000 (18:14 +0200)
Use OpenSSL instead of the internal crypto backend. Everything in
OpenWrt that links to libsrtp2 depends on OpenSSL anyway.

Upsides:

  - the libsrtp2 package size shrinks a bit (for example from 35 to 24
    KiB on ath79)
  - allows to use more cipher suites
  - may allow for hardware acceleration

Closes #763

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
libs/libsrtp/Makefile

index a488a64dca0c1810836816ae568300c7c93649aa..7d670b271c5965667d165afe34750b03099b5490 100644 (file)
@@ -21,13 +21,15 @@ PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
 
 include $(INCLUDE_DIR)/package.mk
 
+CONFIGURE_ARGS+=--enable-openssl
+
 define Package/libsrtp2
   SUBMENU:=Telephony
   SECTION:=libs
   CATEGORY:=Libraries
   TITLE:=Secure RTP (SRTP) library, v$(PKG_VERSION)
   URL:=https://github.com/cisco/libsrtp
-  DEPENDS:=
+  DEPENDS:=+libopenssl
   ABI_VERSION:=1
 endef