Files
David Benjamin 40e035a9e5 Clear the extension list when removing the last extension
The extensions list in a certificate, CRL, and CRL entry is defined as:

... extensions      [3]  EXPLICIT Extensions OPTIONAL ...
... crlEntryExtensions      Extensions OPTIONAL ...
... crlExtensions           [0]  EXPLICIT Extensions OPTIONAL ...

Extensions  ::=  SEQUENCE SIZE (1..MAX) OF Extension

This means that a present but empty extensions list is actually invalid.
Rather, if you have no extensions to encode, you are meant to omit the
list altogether. Fix the delete_ext functions to handle this correctly.

Bug: 442221114
Change-Id: I92af89d3e7120e06489359b3c6e2af499ecf5b85
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/81751
Reviewed-by: Adam Langley <agl@google.com>
Auto-Submit: David Benjamin <davidben@google.com>
Commit-Queue: Adam Langley <agl@google.com>
2025-09-01 09:16:47 -07:00
..
2025-08-25 16:00:23 -07:00
2025-05-08 12:50:38 -07:00
2025-05-08 12:50:38 -07:00
2025-05-20 18:33:04 -07:00
2025-05-08 12:50:38 -07:00
2025-05-08 12:50:38 -07:00
2025-05-08 12:50:38 -07:00
2025-05-08 12:50:38 -07:00
2025-05-08 12:50:38 -07:00
2025-05-08 12:50:38 -07:00
2025-05-08 12:50:38 -07:00
2025-05-08 12:50:38 -07:00
2025-05-08 12:50:38 -07:00
2025-05-08 12:50:38 -07:00
2025-05-08 12:50:38 -07:00
2025-05-08 12:50:38 -07:00
2025-05-08 12:50:38 -07:00
2025-05-08 12:50:38 -07:00
2025-05-08 12:50:38 -07:00