aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/openssl_missing.h
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-05-12 21:25:50 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-05-14 20:00:56 +0900
commit11abfc1d57b6e9165e3f5cf8f193e46aebf070e6 (patch)
tree348ae20794836c210e92f6d8e43799c5570b4e8c /ext/openssl/openssl_missing.h
parent9fc7a2a1206d5bfe85dff9e01f8a102fb38d2153 (diff)
downloadruby-11abfc1d57b6e9165e3f5cf8f193e46aebf070e6.tar.gz
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.
Diffstat (limited to 'ext/openssl/openssl_missing.h')
-rw-r--r--ext/openssl/openssl_missing.h4
1 files changed, 4 insertions, 0 deletions
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