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:45:48 +0000 (15:45 +0200)
commit0124f32a01b2b4f4f7146f226b6a9dfe227c4008
treedeb0b298cd38b1d739c6618ccd6ef7cb8254110b
parentf3a246c63eefc1e5da434df5dc7f48795a12c38b
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)
13 files changed:
crypto/err/openssl.txt
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/man3/X509_LOOKUP_hash_dir.pod
doc/man3/X509_LOOKUP_meth_new.pod [new file with mode: 0644]
include/openssl/x509_vfy.h
include/openssl/x509err.h
util/libcrypto.num
util/private.num