diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-18 19:36:48 +0000 |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2006-06-18 19:36:48 +0000 |
commit | f9394308c9c372bcf419a311c61ba420247ae613 (patch) | |
tree | 616e0bebcbe821703dff207f7f1b704c2deae349 /plugins/sslutils.c | |
parent | cbbfed30eb01a702b2e61c0abcb64c834e73d654 (diff) | |
download | monitoring-plugins-f9394308c9c372bcf419a311c61ba420247ae613.tar.gz |
updating help and usage and license
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1434 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/sslutils.c')
-rw-r--r-- | plugins/sslutils.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/sslutils.c b/plugins/sslutils.c index 66c72995..09d58b0f 100644 --- a/plugins/sslutils.c +++ b/plugins/sslutils.c @@ -47,7 +47,7 @@ int np_net_ssl_init (int sd){ SSL_load_error_strings (); OpenSSL_add_all_algorithms(); if ((c = SSL_CTX_new (m)) == NULL) { - printf (_("CRITICAL - Cannot create SSL context.\n")); + printf ("%s\n", _("CRITICAL - Cannot create SSL context.")); return STATE_CRITICAL; } if ((s = SSL_new (c)) != NULL){ @@ -55,13 +55,13 @@ int np_net_ssl_init (int sd){ if (SSL_connect(s) == 1){ return OK; } else { - printf (_("CRITICAL - Cannot make SSL connection ")); + printf ("%s\n", _("CRITICAL - Cannot make SSL connection ")); # ifdef USE_OPENSSL /* XXX look into ERR_error_string */ ERR_print_errors_fp (stdout); # endif /* USE_OPENSSL */ } } else { - printf (_("CRITICAL - Cannot initiate SSL handshake.\n")); + printf ("%s\n", _("CRITICAL - Cannot initiate SSL handshake.")); } return STATE_CRITICAL; } @@ -93,7 +93,7 @@ int np_net_ssl_check_cert(int days_till_exp){ certificate=SSL_get_peer_certificate(s); if(! certificate){ - printf (_("CRITICAL - Cannot retrieve server certificate.\n")); + printf ("%s\n",_("CRITICAL - Cannot retrieve server certificate.")); return STATE_CRITICAL; } @@ -103,7 +103,7 @@ int np_net_ssl_check_cert(int days_till_exp){ /* Generate tm structure to process timestamp */ if (tm->type == V_ASN1_UTCTIME) { if (tm->length < 10) { - printf (_("CRITICAL - Wrong time format in certificate.\n")); + printf ("%s\n", _("CRITICAL - Wrong time format in certificate.")); return STATE_CRITICAL; } else { stamp.tm_year = (tm->data[0] - '0') * 10 + (tm->data[1] - '0'); @@ -113,7 +113,7 @@ int np_net_ssl_check_cert(int days_till_exp){ } } else { if (tm->length < 12) { - printf (_("CRITICAL - Wrong time format in certificate.\n")); + printf ("%s\n", _("CRITICAL - Wrong time format in certificate.")); return STATE_CRITICAL; } else { stamp.tm_year = @@ -155,7 +155,7 @@ int np_net_ssl_check_cert(int days_till_exp){ X509_free (certificate); return STATE_OK; # else /* ifndef USE_OPENSSL */ - printf (_("WARNING - Plugin does not support checking certificates.\n")); + printf ("%s\n", _("WARNING - Plugin does not support checking certificates.")); return STATE_WARNING; # endif /* USE_OPENSSL */ } |