diff options
author | Viktor Dukhovni <openssl-users@dukhovni.org> | 2016-04-23 00:39:20 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-04-25 07:46:10 -0400 |
commit | 1755d4601231f96e9011abc3d2f40e7bd31320ee (patch) | |
tree | c56d06f3e03803f9b324bf2582786fd4c1f67efb | |
parent | 670ad0fbf6ebcf113e278d8174081a7e2d2fa44c (diff) |
API compat macros for renamed X509_STORE_CTX functions
Reviewed-by: Rich Salz <rsalz@openssl.org>
-rw-r--r-- | include/openssl/x509_vfy.h | 6 |
1 files changed, 6 insertions, 0 deletions
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); |