summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_err.c
diff options
context:
space:
mode:
authortb <>2021-11-06 12:31:40 +0000
committertb <>2021-11-06 12:31:40 +0000
commit324c734f50a92dafaac94e8c2eb1fdf088fb9199 (patch)
treeecb526e27f4bb483191cc3b3ab9743f35b52f8ec /src/lib/libssl/ssl_err.c
parenta1814a7cd214c30252b18e5e83efe1517bbe2e3c (diff)
downloadopenbsd-324c734f50a92dafaac94e8c2eb1fdf088fb9199.tar.gz
openbsd-324c734f50a92dafaac94e8c2eb1fdf088fb9199.tar.bz2
openbsd-324c734f50a92dafaac94e8c2eb1fdf088fb9199.zip
Start cleaning up X509_STORE_get1_issuer()
Get rid of the last X509_OBJECT_free_contents() call by moving the object from the stack to the heap. I deliberately kept the obj variable to keep obj and pobj separate. Rename the out parameter from issuer to out_issuer to ensure that we only assign it when we have acquired a reference that we can return. Add a new X509 *issuer. In the first part of the function, acquire an extra reference before check_issuer/check_time. In the second part of the function, acquire a reference inside the lock to avoid a race. Deal with ret only in one place. ok jsing
Diffstat (limited to 'src/lib/libssl/ssl_err.c')
0 files changed, 0 insertions, 0 deletions