diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-02-18 16:23:18 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-02-18 16:23:18 +0000 |
commit | bb43b48767169674e9c8d337d5bd582cc9134e58 (patch) | |
tree | d090686fe0d27bcdf7ef660b7dcf5cfd829be357 /lib/libelf/libelf_memory.c | |
parent | 57cd8ac2c62e3ce90369ac182e157a4de9a94d1b (diff) |
Use X509_get_ext_d2i() also for x509_get_aki() and x509_get_ski().
Now x509_get_extensions() is no longer required to loop over all
extensions and the code becomes a lot simpler.
While there cleanup x509_get_crl(), as explained by tb@ X509_get_ext_d2i()
allocates memory so one needs to free the pointer at the end.
For x509_crl_get_aki() use X509_CRL_get_ext_d2i() and more or less
copy the rest over from x509_get_aki().
Warn if extensions are missing or present when not expected and also
check the the extensions are marked non-critical as required.
OK job@ tb@
Diffstat (limited to 'lib/libelf/libelf_memory.c')
0 files changed, 0 insertions, 0 deletions