Sync parts of X509_STORE_get_by_subject() with OpenSSL
authortb <tb@openbsd.org>
Thu, 21 Oct 2021 16:03:17 +0000 (16:03 +0000)
committertb <tb@openbsd.org>
Thu, 21 Oct 2021 16:03:17 +0000 (16:03 +0000)
commit009ceffc78baea881292299487f831caa1408d7f
tree9628f54b6cb327d6f11f34664895b219f20df486
parentd6e4fb617d7baf1734cb8b11f3c752b48baf0cbc
Sync parts of X509_STORE_get_by_subject() with OpenSSL

Initialize stmp.type and stmp.data.ptr so that a user-defined lookup
method need not take responsibility of initializing those. Get rid of
current_method, which was never really used. Stop potentially returning
a negative value since most callers assume Boolean return values already.

In addition, garbage collect the pointless j variable.

ok jsing
lib/libcrypto/x509/x509_lu.c