Cope with OPENSSL_VERSION_NUMBER not being a long.

Contrary to the documentation, this is the case on recent FreeBSD at least.
This commit is contained in:
Jilles Tjoelker 2011-03-20 18:46:32 +01:00
parent 5fabe51369
commit e732a57bd1

View file

@ -658,7 +658,8 @@ void
rb_get_ssl_info(char *buf, size_t len)
{
rb_snprintf(buf, len, "Using SSL: %s compiled: 0x%lx, library 0x%lx",
SSLeay_version(SSLEAY_VERSION), OPENSSL_VERSION_NUMBER, SSLeay());
SSLeay_version(SSLEAY_VERSION),
(long)OPENSSL_VERSION_NUMBER, SSLeay());
}