From 8d5df4cb820d51a81aad6562d579fd53ead5c317 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 20 Mar 2011 18:46:32 +0100 Subject: [PATCH] Cope with OPENSSL_VERSION_NUMBER not being a long. Contrary to the documentation, this is the case on recent FreeBSD at least. --- libratbox/src/openssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libratbox/src/openssl.c b/libratbox/src/openssl.c index 254975a..7de5d1c 100644 --- a/libratbox/src/openssl.c +++ b/libratbox/src/openssl.c @@ -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()); }