summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2023-03-21 19:44:19 -0300
committerEneas U de Queiroz <cotequeiroz@gmail.com>2023-04-05 10:34:18 -0300
commit7b36881347deaceccf50d575daa3547c1f6729fe (patch)
tree9cea2d0c3d494c0d20eddeea8c724879b93fd340 /libs
parent6dda81e60aabfe22a3c17573aece498cef109c33 (diff)
afalg_engine: adapt to new engine build config
This adapts the package to the new include/openssl-module.mk, and updated runtime configuration. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Diffstat (limited to 'libs')
-rw-r--r--libs/afalg_engine/Config.in13
-rw-r--r--libs/afalg_engine/Makefile7
-rw-r--r--libs/afalg_engine/files/afalg.cnf2
3 files changed, 4 insertions, 18 deletions
diff --git a/libs/afalg_engine/Config.in b/libs/afalg_engine/Config.in
index ed67f5203..a81a892e9 100644
--- a/libs/afalg_engine/Config.in
+++ b/libs/afalg_engine/Config.in
@@ -9,19 +9,6 @@ if PACKAGE_libopenssl-afalg_sync
This increases memory usage, and has problems when process fork
with open digest contexts (openssh will not work because of it).
- config AFALG_FALLBACK
- bool "Enable software fallback feature"
- default y
- help
- Use software to fulfill small requests. Using AF_ALG adds latency,
- which makes it slow to perform small requests. Enabling this
- option overcomes this problem, at the cost of increased memory
- and CPU usage. This is a new, experimental feature; if you
- encounter any problem, this is the first option to disable.
- The fallback will fail if you enable this engine alongside
- devcrypto, so you'll not be able to install both at the same
- time if this option is enabled.
-
config AFALG_UPDATE_CTR_IV
bool "Don't rely on kernel to update CTR IV"
default y
diff --git a/libs/afalg_engine/Makefile b/libs/afalg_engine/Makefile
index 2dc5af7a1..a227c079f 100644
--- a/libs/afalg_engine/Makefile
+++ b/libs/afalg_engine/Makefile
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=afalg_engine
PKG_VERSION:=1.2.0-beta.1
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/cotequeiroz/afalg_engine/archive/v$(PKG_VERSION)
@@ -25,7 +25,7 @@ PKG_CONFIG_DEPENDS:= \
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
-include $(INCLUDE_DIR)/openssl-engine.mk
+include $(INCLUDE_DIR)/openssl-module.mk
$(eval $(call Package/openssl/add-engine,afalg,libopenssl-afalg_sync))
define Package/libopenssl-afalg_sync
@@ -33,7 +33,7 @@ define Package/libopenssl-afalg_sync
TITLE:=AF_ALG engine using sync crypto API
URL:=https://github.com/cotequeiroz/afalg_engine
DEPENDS += @!OPENSSL_ENGINE_BUILTIN_AFALG +kmod-crypto-user
- CONFLICTS:=libopenssl-afalg $(if $(CONFIG_AFALG_FALLBACK),libopenssl-devcrypto)
+ CONFLICTS:=libopenssl-afalg
MENU:=1
endef
@@ -54,7 +54,6 @@ endef
CMAKE_OPTIONS += \
-DOPENSSL_ENGINES_DIR=/usr/lib/$(ENGINES_DIR) \
-DDIGESTS=$(if $(CONFIG_AFALG_DIGESTS),ON,OFF) \
- -DFALLBACK=$(if $(CONFIG_AFALG_FALLBACK),ON,OFF) \
-DUPDATE_CTR_IV=$(if $(CONFIG_AFALG_UPDATE_CTR_IV),ON,OFF) \
-DUSE_ZERO_COPY=$(if $(CONFIG_AFALG_ZERO_COPY),ON,OFF)
diff --git a/libs/afalg_engine/files/afalg.cnf b/libs/afalg_engine/files/afalg.cnf
index f17338b88..82f0cfadf 100644
--- a/libs/afalg_engine/files/afalg.cnf
+++ b/libs/afalg_engine/files/afalg.cnf
@@ -1,4 +1,4 @@
-[afalg]
+[afalg_sect]
# Leave this alone and configure algorithms with CIPERS/DIGESTS below
default_algorithms = ALL