diff options
Diffstat (limited to 'plugins/check_smtp.c')
| -rw-r--r-- | plugins/check_smtp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index 6e5d972a..f4a11e01 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c | |||
| @@ -188,7 +188,7 @@ main (int argc, char **argv) | |||
| 188 | return STATE_UNKNOWN; | 188 | return STATE_UNKNOWN; |
| 189 | } | 189 | } |
| 190 | if(connect_STARTTLS() != OK) { | 190 | if(connect_STARTTLS() != OK) { |
| 191 | printf (_("ERROR: Cannot create SSL context.\n")); | 191 | printf (_("CRITICAL - Cannot create SSL context.\n")); |
| 192 | return STATE_CRITICAL; | 192 | return STATE_CRITICAL; |
| 193 | } | 193 | } |
| 194 | if ( check_cert ) { | 194 | if ( check_cert ) { |
| @@ -197,7 +197,7 @@ main (int argc, char **argv) | |||
| 197 | X509_free(server_cert); | 197 | X509_free(server_cert); |
| 198 | } | 198 | } |
| 199 | else { | 199 | else { |
| 200 | printf (_("ERROR: Cannot retrieve server certificate.\n")); | 200 | printf (_("CRITICAL - Cannot retrieve server certificate.\n")); |
| 201 | result = STATE_CRITICAL; | 201 | result = STATE_CRITICAL; |
| 202 | 202 | ||
| 203 | } | 203 | } |
| @@ -591,7 +591,7 @@ connect_STARTTLS (void) | |||
| 591 | SSL_load_error_strings (); | 591 | SSL_load_error_strings (); |
| 592 | if ((ctx = SSL_CTX_new (meth)) == NULL) | 592 | if ((ctx = SSL_CTX_new (meth)) == NULL) |
| 593 | { | 593 | { |
| 594 | printf(_("ERROR: Cannot create SSL context.\n")); | 594 | printf(_("CRITICAL - Cannot create SSL context.\n")); |
| 595 | return STATE_CRITICAL; | 595 | return STATE_CRITICAL; |
| 596 | } | 596 | } |
| 597 | /* do the SSL handshake */ | 597 | /* do the SSL handshake */ |
| @@ -606,7 +606,7 @@ connect_STARTTLS (void) | |||
| 606 | } | 606 | } |
| 607 | else | 607 | else |
| 608 | { | 608 | { |
| 609 | printf (_("ERROR: Cannot initiate SSL handshake.\n")); | 609 | printf (_("CRITICAL - Cannot initiate SSL handshake.\n")); |
| 610 | } | 610 | } |
| 611 | /* this causes a seg faul | 611 | /* this causes a seg faul |
| 612 | not sure why, being sloppy | 612 | not sure why, being sloppy |
| @@ -632,7 +632,7 @@ check_certificate (X509 ** certificate) | |||
| 632 | /* Generate tm structure to process timestamp */ | 632 | /* Generate tm structure to process timestamp */ |
| 633 | if (tm->type == V_ASN1_UTCTIME) { | 633 | if (tm->type == V_ASN1_UTCTIME) { |
| 634 | if (tm->length < 10) { | 634 | if (tm->length < 10) { |
| 635 | printf (_("ERROR: Wrong time format in certificate.\n")); | 635 | printf (_("CRITICAL - Wrong time format in certificate.\n")); |
| 636 | return STATE_CRITICAL; | 636 | return STATE_CRITICAL; |
| 637 | } | 637 | } |
| 638 | else { | 638 | else { |
| @@ -644,7 +644,7 @@ check_certificate (X509 ** certificate) | |||
| 644 | } | 644 | } |
| 645 | else { | 645 | else { |
| 646 | if (tm->length < 12) { | 646 | if (tm->length < 12) { |
| 647 | printf (_("ERROR: Wrong time format in certificate.\n")); | 647 | printf (_("CRITICAL - Wrong time format in certificate.\n")); |
| 648 | return STATE_CRITICAL; | 648 | return STATE_CRITICAL; |
| 649 | } | 649 | } |
| 650 | else { | 650 | else { |
