From 96a053288fd227cf4a27e10081439d425d4ebc71 Mon Sep 17 00:00:00 2001 From: Jani Taskinen Date: Thu, 30 Jul 2009 11:32:08 +0000 Subject: [PATCH] - Fixed compile failure with older openssl libs (< 0.9.8), fixes bug #49012 --- ext/openssl/openssl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 87b44ccade..977a077d1c 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1167,7 +1167,11 @@ static X509 * php_openssl_x509_from_zval(zval ** val, int makeresource, long * r if (in == NULL) { return NULL; } +#ifdef TYPEDEF_D2I_OF cert = (X509 *) PEM_ASN1_read_bio((d2i_of_void *)d2i_X509, PEM_STRING_X509, in, NULL, NULL, NULL); +#else + cert = (X509 *) PEM_ASN1_read_bio((char *(*)())d2i_X509, PEM_STRING_X509, in, NULL, NULL, NULL); +#endif BIO_free(in); } -- 2.50.0