From 24e68ba62c5523a9bc3c08dff0418abd6880b924 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 6cf0f3c2fc..6c8aefa2fe 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -870,7 +870,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.1