diff options
author | tb <> | 2021-11-05 21:39:45 +0000 |
---|---|---|
committer | tb <> | 2021-11-05 21:39:45 +0000 |
commit | 091ac4474e27e395d6ccd47fa4e85046dadb7051 (patch) | |
tree | 6da7a41a22a92d3e796258ed67cc392b3160ee85 /src/lib/libc | |
parent | 1403c5fd250a4fad438d744a125ef6a3289397a9 (diff) | |
download | openbsd-091ac4474e27e395d6ccd47fa4e85046dadb7051.tar.gz openbsd-091ac4474e27e395d6ccd47fa4e85046dadb7051.tar.bz2 openbsd-091ac4474e27e395d6ccd47fa4e85046dadb7051.zip |
First pass of streamlining X509_STORE_get1_{certs,crls}()
These functions are quite messy. On top of the tricky logic querying the
cache, then refreshing the cache (unconditionally or not), then querying
again, then extracting a list of certs/crls and bumping their refcounts,
things are intermixed with locking and needlessly early allocations that
then need to be cleaned up again.
Use X509_STORE_CTX_get_obj_by_subject() to avoid using an object on the
stack and defer allocation of the returned stack of certs to later.
Flatten the logic a bit and prepare for further refactoring.
ok jsing
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions