summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/config/disabled_function_curl_verify_certs.ini
blob: 133e024728982f16ff6edc4f1a306f553dfa966d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# `81` being SSL_VERIFYHOST, and `64` SSL_VERIFYPEER

sp.disable_function.function("curl_setopt").param("value").value("1").allow();
sp.disable_function.function("curl_setopt").param("value").value("2").allow();
sp.disable_function.function("curl_setopt").param("option").value("81").drop().alias("Please don't turn CURLOPT_SSL_VERIFYHOST off.");
sp.disable_function.function("curl_setopt").param("option").value("64").drop().alias("Please don't turn CURLOPT_SSL_VERIFYPEER off.");

# ---

sp.disable_function.function("curl_setopt_array").param("options[CURLOPT_SSL_VERIFYHOST]").value("0").drop().alias("Please don't turn CURLOPT_SSL_VERIFYHOST off.");
sp.disable_function.function("curl_setopt_array").param("options[CURLOPT_SSL_VERIFYPEER]").value("0").drop().alias("Please don't turn CURLOPT_SSL_VERIFYPEER off.");

# ---

sp.disable_function.function("curl_multi_setopt").param("value").value("1").allow();
sp.disable_function.function("curl_multi_setopt").param("value").value("2").allow();
sp.disable_function.function("curl_multi_setopt").param("option").value("81").drop().alias("Please don't turn CURLOPT_SSL_VERIFYHOST off.");
sp.disable_function.function("curl_multi_setopt").param("option").value("64").drop().alias("Please don't turn CURLOPT_SSL_VERIFYPEER off.");