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 3fa27fe787
commit 8d5df4cb82
1 changed files with 2 additions and 1 deletions

View File

@ -657,7 +657,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());
}