From: Viktor Dukhovni Date: Sat, 23 Apr 2016 04:39:20 +0000 (-0400) Subject: API compat macros for renamed X509_STORE_CTX functions X-Git-Tag: OpenSSL_1_1_0-pre6~1065 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1755d4601231f96e9011abc3d2f40e7bd31320ee;p=oweals%2Fopenssl.git API compat macros for renamed X509_STORE_CTX functions Reviewed-by: Rich Salz --- diff --git a/include/openssl/x509_vfy.h b/include/openssl/x509_vfy.h index 4bf27e9d76..99d5e21a62 100644 --- a/include/openssl/x509_vfy.h +++ b/include/openssl/x509_vfy.h @@ -316,6 +316,12 @@ void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx, X509_STORE_CTX_verify verify); X509_STORE_CTX_verify X509_STORE_CTX_get_verify(X509_STORE_CTX *ctx); +#if OPENSSL_API_COMPAT < 0x10100000L +# define X509_STORE_CTX_get_chain X509_STORE_CTX_get0_chain +# define X509_STORE_CTX_set_chain X509_STORE_CTX_set0_untrusted +# define X509_STORE_CTX_trusted_stack X509_STORE_CTX_set0_trusted_stack +#endif + X509_LOOKUP *X509_STORE_add_lookup(X509_STORE *v, X509_LOOKUP_METHOD *m); X509_LOOKUP_METHOD *X509_LOOKUP_hash_dir(void); X509_LOOKUP_METHOD *X509_LOOKUP_file(void);