linux/tools/bpf/bpftool
Alan Maguire 90ae54b4c7 bpftool: Allow bpftool to build with openssl < 3
ERR_get_error_all()[1] is a openssl v3 API, so to make code
compatible with openssl v1 utilize ERR_get_err_line_data
instead.  Since openssl is already a build requirement for
the kernel (minimum requirement openssl 1.0.0), this will
allow bpftool to compile where opensslv3 is not available.
Signing-related BPF selftests pass with openssl v1.

[1] https://docs.openssl.org/3.4/man3/ERR_get_error/

Fixes: 40863f4d6e ("bpftool: Add support for signing BPF programs")
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Acked-by: Song Liu <song@kernel.org>
Acked-by: Quentin Monnet <qmo@kernel.org>
Link: https://lore.kernel.org/r/20251120084754.640405-2-alan.maguire@oracle.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2025-11-24 10:00:16 -08:00
..
Documentation Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf after 6.18-rc5+ 2025-11-14 17:43:41 -08:00
bash-completion bpftool: Add bash completion for program signing options 2025-09-23 12:28:33 -07:00
skeleton bpftool: Fix typo in MAX_NUM_METRICS macro name 2024-06-03 16:58:27 +02:00
.gitignore bpftool: Fix SPDX tag for Makefiles and .gitignore 2021-11-10 09:00:52 -08:00
Makefile bpftool: Add support for signing BPF programs 2025-09-22 19:17:55 -07:00
btf.c bpftool: Use appropriate permissions for map access 2025-06-20 11:13:03 -07:00
btf_dumper.c bpftool: Fix missing closing parethesis for BTF_KIND_UNKN 2025-10-28 09:00:55 -07:00
cfg.c bpftool: Fix control flow graph segfault during edge creation 2025-01-10 14:16:13 -08:00
cfg.h bpftool: Support printing opcodes and source file references in CFG 2023-04-05 21:27:27 -07:00
cgroup.c bpftool: Add support for signing BPF programs 2025-09-22 19:17:55 -07:00
common.c bpftool: Refactor kernel config reading into common helper 2025-09-02 17:20:54 +02:00
feature.c bpftool: Refactor kernel config reading into common helper 2025-09-02 17:20:54 +02:00
gen.c bpftool: Add support for signing BPF programs 2025-09-22 19:17:55 -07:00
iter.c bpftool: Use appropriate permissions for map access 2025-06-20 11:13:03 -07:00
jit_disasm.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
json_writer.c tools: bpftool: json: Fix backslash escape typo in jsonw_puts 2023-03-29 09:48:45 -07:00
json_writer.h tools: bpftool: json: Fix backslash escape typo in jsonw_puts 2023-03-29 09:48:45 -07:00
link.c bpftool: Add CET-aware symbol matching for x86_64 architectures 2025-09-02 17:20:54 +02:00
main.c bpftool: Add support for signing BPF programs 2025-09-22 19:17:55 -07:00
main.h bpftool: Add support for signing BPF programs 2025-09-22 19:17:55 -07:00
map.c bpftool: Recognize insn_array map type 2025-11-05 17:31:25 -08:00
map_perf_ring.c bpftool: Use appropriate permissions for map access 2025-06-20 11:13:03 -07:00
net.c bpftool: Fix memory leak in dump_xx_nlmsg on realloc failure 2025-06-20 11:32:36 -07:00
netlink_dumper.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
netlink_dumper.h bpftool: Extend net dump with tcx progs 2023-07-19 10:07:28 -07:00
perf.c bpftool: fix perf help message 2023-08-11 20:54:29 -07:00
pids.c bpftool: ensure task comm is always NUL-terminated 2024-11-05 17:12:29 -08:00
prog.c bpftool: Add support for signing BPF programs 2025-09-22 19:17:55 -07:00
sign.c bpftool: Allow bpftool to build with openssl < 3 2025-11-24 10:00:16 -08:00
struct_ops.c bpftool: Mount bpffs on provided dir instead of parent dir 2024-04-04 15:37:12 -07:00
token.c bpftool: Fix UAF in get_delegate_value 2025-09-19 15:37:30 -07:00
tracelog.c bpftool: Search for tracefs at /sys/kernel/tracing first 2025-09-15 10:10:28 -07:00
xlated_dumper.c bpftool: Using the right format specifiers 2025-03-17 13:50:56 -07:00
xlated_dumper.h bpftool: Dump the kernel symbol's module name 2023-07-11 20:07:50 -07:00