All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/opkg: enable openssl signature
@ 2022-04-13  7:31 Andreï V. FOMITCHEV-HERVIEU
  2022-04-13 21:08 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Andreï V. FOMITCHEV-HERVIEU @ 2022-04-13  7:31 UTC (permalink / raw)
  To: buildroot; +Cc: Andreï V. FOMITCHEV-HERVIEU

OPKG supports either GPG or OpenSSL signature check. It is already possible
to enable in buildroot the check of GPG signatures. This patch adds similar
configuration to enable the OpenSSL signature checks.

Signed-off-by: Andreï V. FOMITCHEV-HERVIEU <andrei.fomitchevhervieu@getinge.com>
Change-Id: Id2c76b3cb39ba5eed5bd0bef7648f7970033b87b
---
 package/opkg/Config.in | 12 ++++++++++++
 package/opkg/opkg.mk   |  2 ++
 2 files changed, 14 insertions(+)

diff --git a/package/opkg/Config.in b/package/opkg/Config.in
index 1f6a39343f..2e3f9fca3e 100644
--- a/package/opkg/Config.in
+++ b/package/opkg/Config.in
@@ -29,5 +29,17 @@ config BR2_PACKAGE_OPKG_GPG_SIGN
 	help
 	  Enable opkg package signature checking support using
 	  gnupg/libgpgme.
+config BR2_PACKAGE_OPKG_OPENSSL_SIGN
+	bool "openssl support"
+	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBOPENSSL_ENGINES
+	help
+	  Enable opkg package signature checking support using
+	  openssl. Example of openssl command to generate opkg
+	  signature
+	  openssl smime -sign -in Packages -inkey private.key
+	  -signer public.pem -binary -outform PEM --nodetach
+	   -out Packages.sig
+	  Where Packages is the file to sign 
 
 endif
diff --git a/package/opkg/opkg.mk b/package/opkg/opkg.mk
index 501edcf8af..583744ec93 100644
--- a/package/opkg/opkg.mk
+++ b/package/opkg/opkg.mk
@@ -23,6 +23,8 @@ OPKG_CONF_ENV += \
 	ac_cv_path_GPGME_CONFIG=$(STAGING_DIR)/usr/bin/gpgme-config \
 	ac_cv_path_GPGERR_CONFIG=$(STAGING_DIR)/usr/bin/gpg-error-config
 OPKG_DEPENDENCIES += libgpgme libgpg-error
+else ifeq ($(BR2_PACKAGE_OPKG_OPENSSL_SIGN),y)
+OPKG_CONF_OPTS += --disable-gpg --enable-openssl
 else
 OPKG_CONF_OPTS += --disable-gpg
 endif
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-14  5:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-13  7:31 [Buildroot] [PATCH 1/1] package/opkg: enable openssl signature Andreï V. FOMITCHEV-HERVIEU
2022-04-13 21:08 ` Thomas Petazzoni via buildroot
2022-04-14  5:53   ` [Buildroot] [EXT] " Andrei FOMITCHEV HERVIEU

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.