diff options
| author | jvoisin | 2018-08-29 08:55:49 +0000 |
|---|---|---|
| committer | xXx-caillou-xXx | 2018-08-29 10:55:49 +0200 |
| commit | 64e52596abaf4bdd4c17f79c4e8acf25d1a452b4 (patch) | |
| tree | 5452af804c25304cabe0f7e1160263fad25c3bf9 /src/sp_config_keywords.c | |
| parent | a0300b15a3afffe02c737d263c3d6dd31ac307b7 (diff) | |
Verify certs (#223)
Ensure that certificates are verified in curl
should close #47
Diffstat (limited to 'src/sp_config_keywords.c')
| -rw-r--r-- | src/sp_config_keywords.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sp_config_keywords.c b/src/sp_config_keywords.c index 93077c6..ee4d130 100644 --- a/src/sp_config_keywords.c +++ b/src/sp_config_keywords.c | |||
| @@ -94,6 +94,11 @@ int parse_global_strict(char *line) { | |||
| 94 | line, &(SNUFFLEUPAGUS_G(config).config_global_strict->enable), NULL); | 94 | line, &(SNUFFLEUPAGUS_G(config).config_global_strict->enable), NULL); |
| 95 | } | 95 | } |
| 96 | 96 | ||
| 97 | int parse_curl_verify_certificates(char *line) { | ||
| 98 | return parse_enable( | ||
| 99 | line, &(SNUFFLEUPAGUS_G(config).config_curl_verify_certificates->enable), NULL); | ||
| 100 | } | ||
| 101 | |||
| 97 | int parse_unserialize(char *line) { | 102 | int parse_unserialize(char *line) { |
| 98 | bool enable = false, disable = false; | 103 | bool enable = false, disable = false; |
| 99 | sp_config_unserialize *unserialize = | 104 | sp_config_unserialize *unserialize = |
