commit | 3e721e0c0836588b64deb6e1c1befd08f0f02e71 | [log] [tgz] |
---|---|---|
author | Michael Brown <mcb30@ipxe.org> | Tue Feb 13 16:27:31 2024 +0000 |
committer | Michael Brown <mcb30@ipxe.org> | Wed Feb 14 16:40:05 2024 +0000 |
tree | 417c4347622771d4fb5183cf292a69e621826519 | |
parent | e10dfe5dc7a5985333c85d6b196196b5cce9303a [diff] |
[crypto] Add x509_truncate() to truncate a certificate chain Downloading a cross-signed certificate chain to partially replace (rather than simply extend) an existing chain will require the ability to discard all certificates after a specified link in the chain. Extract the relevant logic from x509_free_chain() and expose it separately as x509_truncate(). Signed-off-by: Michael Brown <mcb30@ipxe.org>