summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 65282c7)
raw | patch | inline | side by side (parent: 65282c7)
author | M. Sean Finney <seanius@users.sourceforge.net> | |
Wed, 19 Oct 2005 13:05:41 +0000 (13:05 +0000) | ||
committer | M. Sean Finney <seanius@users.sourceforge.net> | |
Wed, 19 Oct 2005 13:05:41 +0000 (13:05 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1256 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_http.c | patch | blob | history |
diff --git a/plugins/check_http.c b/plugins/check_http.c
index d47f5ce633c8c8845e6061fda8f4f92c9a5c49bb..294866b0d1d2d1e9efe39c361f35962d3ac9fb70 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
if (connect_SSL () != OK) {
die (STATE_CRITICAL, _("Unable to open TCP socket\n"));
}
-#ifdef USE_OPENSSL
+# ifdef USE_OPENSSL
if ((server_cert = SSL_get_peer_certificate (ssl)) != NULL) {
X509_free (server_cert);
}
-#endif
else {
printf (_("CRITICAL - Cannot retrieve server certificate.\n"));
return STATE_CRITICAL;
}
-
+# endif /* USE_OPENSSL */
}
else {
#endif