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-03-17 22:02:19 -07:00
2025-08-31 19:29:51 -07:00
2025-05-08 20:19:56 -07:00
2025-03-19 23:44:21 -07:00
2025-04-18 12:45:58 -07:00
2025-03-19 23:44:21 -07:00
2025-07-09 12:17:15 -07:00
2025-07-09 12:17:15 -07:00
2025-05-01 11:06:57 -07:00
2025-07-18 00:36:20 -07:00
2025-08-18 09:23:13 -07:00
2025-07-09 10:49:58 -07:00
2025-03-19 23:44:21 -07:00
2025-07-09 12:17:15 -07:00
2025-07-09 12:17:15 -07:00
2025-05-22 10:31:51 -07:00
2025-03-19 23:57:38 -07:00
2025-03-20 03:41:54 -07:00
2025-05-01 11:06:57 -07:00