aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_ssl_session.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-09-04 19:01:26 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-10-28 11:31:00 +0900
commitec8e28e7d8440d619a24e93a872fb2955011b25c (patch)
treea446a673ede710e756759de78020adb24905f297 /ext/openssl/ossl_ssl_session.c
parent536c643759ea00aba7815c300cc867f6367b3a6a (diff)
downloadruby-openssl-ec8e28e7d8440d619a24e93a872fb2955011b25c.tar.gz
Always include openssl/crypto.h
It should be usable regardless of the platform.
Diffstat (limited to 'ext/openssl/ossl_ssl_session.c')
-rw-r--r--ext/openssl/ossl_ssl_session.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/openssl/ossl_ssl_session.c b/ext/openssl/ossl_ssl_session.c
index f3da25b7..7abb8671 100644
--- a/ext/openssl/ossl_ssl_session.c
+++ b/ext/openssl/ossl_ssl_session.c
@@ -108,11 +108,7 @@ int SSL_SESSION_cmp(const SSL_SESSION *a,const SSL_SESSION *b)
if (a_len != b_len)
return 1;
-#if defined(_WIN32)
- return memcmp(a_sid, b_sid, a_len);
-#else
return CRYPTO_memcmp(a_sid, b_sid, a_len);
-#endif
}
#endif