Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trunk/include: sync with owrt 04.2022
- Loading branch information
Showing
19 changed files
with
120 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
LINUX_VERSION-5.10 = .109 | ||
LINUX_KERNEL_HASH-5.10.109 = 18fb22ecb249669ea775474aee614dcb0697cab299068074fd9f0bafa32113dc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
LINUX_VERSION-5.15 = .31 | ||
LINUX_KERNEL_HASH-5.15.31 = f621384b47d5bed927910bf5211e7b4ccac925f28218e483bb1a9c484b246b88 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
# | ||
# Copyright (C) 2022 Enéas Ulir de Queiroz | ||
|
||
ENGINES_DIR=engines-1.1 | ||
|
||
define Package/openssl/engine/Default | ||
SECTION:=libs | ||
CATEGORY:=Libraries | ||
SUBMENU:=SSL | ||
DEPENDS:=libopenssl @OPENSSL_ENGINE +libopenssl-conf | ||
endef | ||
|
||
# 1 = engine name | ||
# 2 - package name, defaults to libopenssl-$(1) | ||
define Package/openssl/add-engine | ||
OSSL_ENG_PKG:=$(if $(2),$(2),libopenssl-$(1)) | ||
Package/$$(OSSL_ENG_PKG)/conffiles:=/opt/etc/ssl/engines.cnf.d/$(1).cnf | ||
|
||
define Package/$$(OSSL_ENG_PKG)/install | ||
$$(INSTALL_DIR) $$(1)/opt/lib/$(ENGINES_DIR) | ||
$$(INSTALL_BIN) $$(PKG_INSTALL_DIR)/usr/lib/$(ENGINES_DIR)/$(1).so \ | ||
$$(1)/opt/lib/$(ENGINES_DIR) | ||
$$(INSTALL_DIR) $$(1)/opt/etc/ssl/engines.cnf.d | ||
$$(INSTALL_DATA) ./files/$(1).cnf $$(1)/opt/etc/ssl/engines.cnf.d/ | ||
endef | ||
|
||
define Package/$$(OSSL_ENG_PKG)/postinst := | ||
#!/bin/sh | ||
OPENSSL_UCI="$$$${IPKG_INSTROOT}/etc/config/openssl" | ||
|
||
[ -z "$$$${IPKG_INSTROOT}" ] && uci -q get openssl.$(1) >/dev/null && exit 0 | ||
|
||
cat << EOF >> "$$$${OPENSSL_UCI}" | ||
|
||
config engine '$(1)' | ||
option enabled '1' | ||
EOF | ||
|
||
[ -n "$$$${IPKG_INSTROOT}" ] || /opt/etc/init.d/openssl reload | ||
endef | ||
|
||
define Package/$$(OSSL_ENG_PKG)/postrm := | ||
#!/bin/sh | ||
[ -n "$$$${IPKG_INSTROOT}" ] && exit 0 | ||
uci delete openssl.$(1) | ||
uci commit openssl | ||
/etc/init.d/openssl reload | ||
endef | ||
endef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters