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.4.0alpha1~191^2~2911 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5584b5f688248151c559f809ce02a1778c32d4e;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 4d1e9dafb4..e80cf393e7 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1186,7 +1186,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); } if (cert && makeresource && resourceval) {