diff options
Diffstat (limited to 'plugins/sslutils.c')
| -rw-r--r-- | plugins/sslutils.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/sslutils.c b/plugins/sslutils.c index 3ce6afed..0e6d7525 100644 --- a/plugins/sslutils.c +++ b/plugins/sslutils.c | |||
| @@ -437,16 +437,14 @@ mp_subcheck mp_net_ssl_check_certificate(X509 *certificate, int days_till_exp_wa | |||
| 437 | xasprintf(&sc_cert.output, _("Certificate '%s' expired on %s"), commonName, timestamp); | 437 | xasprintf(&sc_cert.output, _("Certificate '%s' expired on %s"), commonName, timestamp); |
| 438 | sc_cert = mp_set_subcheck_state(sc_cert, STATE_CRITICAL); | 438 | sc_cert = mp_set_subcheck_state(sc_cert, STATE_CRITICAL); |
| 439 | } else if (days_left == 0) { | 439 | } else if (days_left == 0) { |
| 440 | xasprintf(&sc_cert.output, _("Certificate '%s' just expired (%s)"), commonName, | 440 | xasprintf(&sc_cert.output, _("Certificate '%s' just expired (%s)"), commonName, timestamp); |
| 441 | timestamp); | ||
| 442 | if (days_left > days_till_exp_crit) { | 441 | if (days_left > days_till_exp_crit) { |
| 443 | sc_cert = mp_set_subcheck_state(sc_cert, STATE_WARNING); | 442 | sc_cert = mp_set_subcheck_state(sc_cert, STATE_WARNING); |
| 444 | } else { | 443 | } else { |
| 445 | sc_cert = mp_set_subcheck_state(sc_cert, STATE_CRITICAL); | 444 | sc_cert = mp_set_subcheck_state(sc_cert, STATE_CRITICAL); |
| 446 | } | 445 | } |
| 447 | } else { | 446 | } else { |
| 448 | xasprintf(&sc_cert.output, _("Certificate '%s' will expire on %s"), commonName, | 447 | xasprintf(&sc_cert.output, _("Certificate '%s' will expire on %s"), commonName, timestamp); |
| 449 | timestamp); | ||
| 450 | sc_cert = mp_set_subcheck_state(sc_cert, STATE_OK); | 448 | sc_cert = mp_set_subcheck_state(sc_cert, STATE_OK); |
| 451 | } | 449 | } |
| 452 | X509_free(certificate); | 450 | X509_free(certificate); |
