diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-04-08 18:06:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-08 18:06:29 +0200 |
| commit | 3a6f9292f147de29b21dafa4cf9b7efce3e4cbfd (patch) | |
| tree | b7a2f64487a5a13753a14cd627550bcd95bc8eaf /plugins/check_smtp.c | |
| parent | 613cb60c96e21eaafb82b80a6b6d84b1b1f9729f (diff) | |
| download | monitoring-plugins-3a6f9292f147de29b21dafa4cf9b7efce3e4cbfd.tar.gz | |
Rename USE_OPENSSL to MOPL_USE_OPENSSL (#2253)
net-snmp uses the same pre processor name "USE_OPENSSL" as we do.
To avoid the conflict, this commit renames it on our side to
"MOPL_USE_OPENSSL".
"MOPL" (better "MoPl"?) stands for Monitoring Plugins.
Diffstat (limited to 'plugins/check_smtp.c')
| -rw-r--r-- | plugins/check_smtp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index 24883fd8..19e2a58f 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c | |||
| @@ -350,7 +350,7 @@ int main(int argc, char **argv) { | |||
| 350 | } | 350 | } |
| 351 | } | 351 | } |
| 352 | 352 | ||
| 353 | # ifdef USE_OPENSSL | 353 | # ifdef MOPL_USE_OPENSSL |
| 354 | if (ssl_established) { | 354 | if (ssl_established) { |
| 355 | net_ssl_check_cert_result cert_check_result = | 355 | net_ssl_check_cert_result cert_check_result = |
| 356 | np_net_ssl_check_cert2(config.days_till_exp_warn, config.days_till_exp_crit); | 356 | np_net_ssl_check_cert2(config.days_till_exp_warn, config.days_till_exp_crit); |
| @@ -389,7 +389,7 @@ int main(int argc, char **argv) { | |||
| 389 | 389 | ||
| 390 | mp_add_subcheck_to_check(&overall, sc_cert_check); | 390 | mp_add_subcheck_to_check(&overall, sc_cert_check); |
| 391 | } | 391 | } |
| 392 | # endif /* USE_OPENSSL */ | 392 | # endif /* MOPL_USE_OPENSSL */ |
| 393 | 393 | ||
| 394 | #endif | 394 | #endif |
| 395 | 395 | ||
| @@ -764,7 +764,7 @@ check_smtp_config_wrapper process_arguments(int argc, char **argv) { | |||
| 764 | break; | 764 | break; |
| 765 | case 'D': { | 765 | case 'D': { |
| 766 | /* Check SSL cert validity */ | 766 | /* Check SSL cert validity */ |
| 767 | #ifdef USE_OPENSSL | 767 | #ifdef MOPL_USE_OPENSSL |
| 768 | char *temp; | 768 | char *temp; |
| 769 | if ((temp = strchr(optarg, ',')) != NULL) { | 769 | if ((temp = strchr(optarg, ',')) != NULL) { |
| 770 | *temp = '\0'; | 770 | *temp = '\0'; |
