Add APIs for custom X509_LOOKUP_METHOD creation
authorMingtao Yang <mingtao@fb.com>
Fri, 9 Feb 2018 18:23:18 +0000 (10:23 -0800)
committerRichard Levitte <levitte@openssl.org>
Wed, 30 May 2018 13:59:01 +0000 (15:59 +0200)
commit6912debb881e669f7a7fb621588e20347111c4f0
treeab0f06da9119598e96c92bc2343e7968540ed48a
parentac35f285bd45997ad7d75033f638b01cd77fec6c
Add APIs for custom X509_LOOKUP_METHOD creation

OpenSSL 1.1.0 made the X509_LOOKUP_METHOD structure opaque, so
applications that were previously able to define a custom lookup method
are not able to be ported.

This commit adds getters and setters for each of the current fields of
X509_LOOKUP_METHOD, along with getters and setters on several associated
opaque types (such as X509_LOOKUP and X509_OBJECT).

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6152)

(cherry picked from commit 0124f32a01b2b4f4f7146f226b6a9dfe227c4008)
crypto/x509/build.info
crypto/x509/by_dir.c
crypto/x509/x509_err.c
crypto/x509/x509_lcl.h
crypto/x509/x509_lu.c
crypto/x509/x509_meth.c [new file with mode: 0644]
doc/crypto/X509_LOOKUP_hash_dir.pod
doc/man3/X509_LOOKUP_meth_new.pod [new file with mode: 0644]
include/openssl/x509.h
include/openssl/x509_vfy.h
util/libcrypto.num