diff -urNp wvstreams-4.6.1-orig/crypto/wvx509.cc wvstreams-4.6.1/crypto/wvx509.cc
--- wvstreams-4.6.1-orig/crypto/wvx509.cc 2008-10-23 22:23:49.000000000 +0200
+++ wvstreams-4.6.1/crypto/wvx509.cc 2010-01-13 15:48:13.000000000 +0100
@@ -1157,7 +1157,7 @@ WvString WvX509::get_extension(int nid)
if (ext)
{
- X509V3_EXT_METHOD *method = X509V3_EXT_get(ext);
+ X509V3_EXT_METHOD *method = (X509V3_EXT_METHOD *) X509V3_EXT_get(ext);
if (!method)
{
WvDynBuf buf;