Getters and setters for the check_issued() callback
authortb <tb@openbsd.org>
Thu, 1 Dec 2022 05:16:08 +0000 (05:16 +0000)
committertb <tb@openbsd.org>
Thu, 1 Dec 2022 05:16:08 +0000 (05:16 +0000)
commit43f73684321c48681c96238bbcf6fef8146f3481
tree8394966b6ca342dcb7805276f51b487dee89dc02
parent221187679eb033d313e323248df280ccfd787ce3
Getters and setters for the check_issued() callback

Open62541 uses X509_STORE_CTX_get_check_issued(), so provide it along
with X509_STORE_{get,set}_check_issued(). As you would expect, they all
return or take an X509_STORE_CTX_check_issued_fn. The getters aren't const
in OpenSSL 1.1, but they now are in OpenSSL 3...

These will be made available in the next minor bump and will ship in the
stable release of LibreSSL 3.7

Part of OpenSSL commit 1060a50b
See also https://github.com/libressl-portable/portable/issues/748

ok beck jsing
lib/libcrypto/hidden/openssl/x509_vfy.h
lib/libcrypto/x509/x509_vfy.c
lib/libcrypto/x509/x509_vfy.h