diff options
Diffstat (limited to 'src/sp_curl_verify_certificates.h')
| -rw-r--r-- | src/sp_curl_verify_certificates.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/sp_curl_verify_certificates.h b/src/sp_curl_verify_certificates.h new file mode 100644 index 0000000..f4f680e --- /dev/null +++ b/src/sp_curl_verify_certificates.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #ifndef SP_CURL_VERIFY_CERTIFICATES_H | ||
| 2 | #define SP_CURL_VERIFY_CERTIFICATES_H | ||
| 3 | #include "php_snuffleupagus.h" | ||
| 4 | |||
| 5 | #ifndef CURLOPT_SSL_VERIFYPEER | ||
| 6 | #define CURLOPT_SSL_VERIFYPEER 64 | ||
| 7 | #endif | ||
| 8 | |||
| 9 | #ifndef CURLOPT_SSL_VERIFYHOST | ||
| 10 | #define CURLOPT_SSL_VERIFYHOST 81 | ||
| 11 | #endif | ||
| 12 | |||
| 13 | int hook_curl_verify_certificates(); | ||
| 14 | |||
| 15 | #endif | ||
