From: Jani Taskinen Date: Thu, 30 Jul 2009 11:32:08 +0000 (+0000) Subject: - Fixed compile failure with older openssl libs (< 0.9.8), fixes bug #49012 X-Git-Tag: php-5.2.11RC1~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24e68ba62c5523a9bc3c08dff0418abd6880b924;p=php - Fixed compile failure with older openssl libs (< 0.9.8), fixes bug #49012 --- 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); }