[PATCH 0/2] X.509: Accept a certificate with an empty subject
From: Laveesh Bansal
Date: Thu Nov 12 2026 - 02:44:37 EST
Patch 1 fixes loading a certificate with an empty Subject, which iwd
hits with an eduroam server certificate [1]. Patch 2 adds a KUnit test
for it.
I developed this series using an LLM coding assistant.
[1] https://lore.kernel.org/r/9b05b89cf296b8a6392bbe6327228c1bc2f05c49.camel@xxxxxxxxxxxxx
Laveesh Bansal (2):
X.509: Accept a certificate with an empty subject
X.509: Add KUnit tests for the certificate parser
crypto/asymmetric_keys/Kconfig | 11 ++
crypto/asymmetric_keys/Makefile | 1 +
crypto/asymmetric_keys/x509.asn1 | 8 +-
crypto/asymmetric_keys/x509_parser_test.c | 160 ++++++++++++++++++++++
4 files changed, 179 insertions(+), 1 deletion(-)
create mode 100644 crypto/asymmetric_keys/x509_parser_test.c
--
2.54.0