From 11abfc1d57b6e9165e3f5cf8f193e46aebf070e6 Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Thu, 12 May 2016 21:25:50 +0900 Subject: ext/openssl: always use our implementation of SSL_SESSION_cmp() Rename our SSL_SESSION_cmp() to ossl_SSL_SESSION_cmp(). Implement CRYPTO_memcmp() in openssl_missing.c if it is not provided. --- ext/openssl/openssl_missing.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/openssl/openssl_missing.h') diff --git a/ext/openssl/openssl_missing.h b/ext/openssl/openssl_missing.h index 7067f7d750..bf5be463cf 100644 --- a/ext/openssl/openssl_missing.h +++ b/ext/openssl/openssl_missing.h @@ -148,6 +148,10 @@ int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, EVP_CIPHER_CTX *in); int X509_CRL_set_version(X509_CRL *x, long version); #endif +#if !defined(HAVE_CRYPTO_MEMCMP) +int CRYPTO_memcmp(const volatile void * volatile in_a, const volatile void * volatile in_b, size_t len); +#endif + #if !defined(HAVE_X509_CRL_SET_ISSUER_NAME) int X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name); #endif -- cgit v1.2.3