diff options
Diffstat (limited to 'plugins/sslutils.c')
-rw-r--r-- | plugins/sslutils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/sslutils.c b/plugins/sslutils.c index 3c928413..96740b3a 100644 --- a/plugins/sslutils.c +++ b/plugins/sslutils.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #define MAX_CN_LENGTH 256 | 29 | #define MAX_CN_LENGTH 256 |
30 | #include "common.h" | 30 | #include "common.h" |
31 | #include "netutils.h" | 31 | #include "netutils.h" |
32 | #include "../lib/monitoringplug.h" | ||
32 | 33 | ||
33 | #ifdef HAVE_SSL | 34 | #ifdef HAVE_SSL |
34 | static SSL_CTX *ctx = NULL; | 35 | static SSL_CTX *ctx = NULL; |
@@ -200,7 +201,7 @@ int np_net_ssl_check_certificate(X509 *certificate, int days_till_exp_warn, int | |||
200 | time_t tm_t; | 201 | time_t tm_t; |
201 | 202 | ||
202 | if (!certificate) { | 203 | if (!certificate) { |
203 | printf("%s\n", _("CRITICAL - Cannot retrieve server certificate.")); | 204 | printf("%s\n", _("CRITICAL - No server certificate present to inspect.")); |
204 | return STATE_CRITICAL; | 205 | return STATE_CRITICAL; |
205 | } | 206 | } |
206 | 207 | ||