]> granicus.if.org Git - php/commitdiff
- Fixed compile failure with older openssl libs (< 0.9.8), fixes bug #49012
authorJani Taskinen <jani@php.net>
Thu, 30 Jul 2009 11:32:08 +0000 (11:32 +0000)
committerJani Taskinen <jani@php.net>
Thu, 30 Jul 2009 11:32:08 +0000 (11:32 +0000)
ext/openssl/openssl.c

index 87b44ccade1c41fd778bbf811e917c7b5f917442..977a077d1ccfbe8f7cb854f9e8dfaf1c96966b83 100644 (file)
@@ -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);
        }