|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-01-02 12:35 UTC] iliaa@php.net
[2003-01-02 12:36 UTC] wez@php.net
[2003-01-02 14:35 UTC] bob at xware dot it
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 17:00:01 2025 UTC |
not really important, just in case somebody else has the same trouble. compiling 4.3.0 with openssl < 0.96 leads to an undefined reference to ERR_error_string_n, here is the small fix. --- main/network.c.orig Sat Dec 28 00:15:15 2002 +++ main/network.c Sat Dec 28 00:14:34 2002 @@ -50,6 +50,7 @@ #endif #ifdef HAVE_OPENSSL_EXT +#include <openssl/crypto.h> #include <openssl/err.h> #endif @@ -809,10 +810,18 @@ if (ebuf) { esbuf[0] = '\n'; esbuf[1] = '\0'; +#if OPENSSL_VERSION_NUMBER < 0x0090600fL + ERR_error_string(code, esbuf + 1); +#else ERR_error_string_n(code, esbuf + 1, sizeof(esbuf) - 2); +#endif } else { esbuf[0] = '\0'; +#if OPENSSL_VERSION_NUMBER < 0x0090600fL + ERR_error_string(code, esbuf); +#else ERR_error_string_n(code, esbuf, sizeof(esbuf) - 1); +#endif } code = strlen(esbuf); esbuf[code] = '\0';