|
47 | 47 | # ifdef PHP_WIN32
|
48 | 48 | # define PHP_CURL_NEED_OPENSSL_TSL
|
49 | 49 | # include <openssl/crypto.h>
|
50 |
| -# else /* !PHP_WIN32 */ |
51 |
| -# if defined(HAVE_CURL_OPENSSL) |
52 |
| -# if defined(HAVE_OPENSSL_CRYPTO_H) |
53 |
| -# define PHP_CURL_NEED_OPENSSL_TSL |
54 |
| -# include <openssl/crypto.h> |
55 |
| -# else |
56 |
| -# warning \ |
57 |
| - "libcurl was compiled with OpenSSL support, but configure could not find " \ |
58 |
| - "openssl/crypto.h; thus no SSL crypto locking callbacks will be set, which may " \ |
59 |
| - "cause random crashes on SSL requests" |
60 |
| -# endif |
61 |
| -# elif defined(HAVE_CURL_GNUTLS) |
62 |
| - /* Modern versions of GnuTLS use the nette backend rather than gcrypt, so there |
63 |
| - * is nothing to do here anymore. */ |
| 50 | +# elif defined(HAVE_CURL_OPENSSL) |
| 51 | +# if defined(HAVE_OPENSSL_CRYPTO_H) |
| 52 | +# define PHP_CURL_NEED_OPENSSL_TSL |
| 53 | +# include <openssl/crypto.h> |
64 | 54 | # else
|
65 | 55 | # warning \
|
66 |
| - "libcurl was compiled with SSL support, but configure could not determine which" \ |
67 |
| - "library was used; thus no SSL crypto locking callbacks will be set, which may " \ |
| 56 | + "libcurl was compiled with OpenSSL support, but configure could not find " \ |
| 57 | + "openssl/crypto.h; thus no SSL crypto locking callbacks will be set, which may " \ |
68 | 58 | "cause random crashes on SSL requests"
|
69 |
| -# endif /* HAVE_CURL_OPENSSL || HAVE_CURL_GNUTLS */ |
70 |
| -# endif /* PHP_WIN32 */ |
| 59 | +# endif |
| 60 | +# endif /* HAVE_CURL_OPENSSL */ |
71 | 61 | #endif /* ZTS && HAVE_CURL_SSL */
|
72 | 62 | /* }}} */
|
73 | 63 |
|
|
0 commit comments