BPF List
 help / color / mirror / Atom feed
* [RFC bpf-next 0/2] bpftool signing feature check
@ 2025-10-29  9:46 Alan Maguire
  2025-10-29  9:46 ` [RFC bpf-next 1/2] tools-build: Add feature test for openssl3 Alan Maguire
  2025-10-29  9:46 ` [RFC bpf-next 2/2] bpftool: Use libcrypto feature test to optionally support signing Alan Maguire
  0 siblings, 2 replies; 8+ messages in thread
From: Alan Maguire @ 2025-10-29  9:46 UTC (permalink / raw)
  To: qmo
  Cc: ast, daniel, andrii, martin.lau, eddyz87, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, terrelln, dsterba,
	acme, irogers, leo.yan, namhyung, tglozar, blakejones, yuzhuo,
	charlie, ebiggers, bpf, Alan Maguire

Add feature check for libcrypto >= 3 needed for bpftool signing and
use that feature test in bpftool compilation.

Patch 1 implements the feature check using a libcrypto function
present in v3.0 and later; patch 2 uses that feature to conditionally
compile signing code.

Alan Maguire (2):
  tools-build: Add feature test for openssl3
  bpftool: Use libcrypto feature test to optionally support signing

 tools/bpf/bpftool/Makefile           | 17 ++++++++++++++---
 tools/bpf/bpftool/gen.c              | 17 ++++++++++++-----
 tools/bpf/bpftool/prog.c             | 12 +++++++-----
 tools/bpf/bpftool/sign.c             |  2 ++
 tools/build/feature/Makefile         |  6 +++++-
 tools/build/feature/test-libcrypto.c | 12 ++++++++++++
 6 files changed, 52 insertions(+), 14 deletions(-)
 create mode 100644 tools/build/feature/test-libcrypto.c

-- 
2.39.3


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

end of thread, other threads:[~2025-10-31 10:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-29  9:46 [RFC bpf-next 0/2] bpftool signing feature check Alan Maguire
2025-10-29  9:46 ` [RFC bpf-next 1/2] tools-build: Add feature test for openssl3 Alan Maguire
2025-10-29  9:46 ` [RFC bpf-next 2/2] bpftool: Use libcrypto feature test to optionally support signing Alan Maguire
2025-10-29 10:15   ` bot+bpf-ci
2025-10-29 10:40   ` Quentin Monnet
2025-10-29 11:22     ` Alan Maguire
2025-10-30 13:58       ` Quentin Monnet
2025-10-31 10:11         ` bpftool BPF signing supported using openssl v1? (Was Re: [RFC bpf-next 2/2] bpftool: Use libcrypto feature test to optionally support signing) Alan Maguire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox