summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d854505)
raw | patch | inline | side by side (parent: d854505)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 18 Feb 2003 21:56:24 +0000 (21:56 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 18 Feb 2003 21:56:24 +0000 (21:56 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@338 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 79c5ad45c26e250fce3a4d621c63f0617ac429a2..8ffbf989bef7df3b08e012c40f69c9e42bd2cebc 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
#ifdef HAVE_SSL
int check_cert = FALSE;
int days_till_exp;
-unsigned char *randbuff;
+char *randbuff = "";
SSL_CTX *ctx;
SSL *ssl;
X509 *server_cert;
{
SSL_METHOD *meth;
- asprintf (&randbuff, "%s", "qwertyuiopasdfghjkl");
+ asprintf (&randbuff, "%s", "qwertyuiopasdfghjklqwertyuiopasdfghjkl");
RAND_seed (randbuff, strlen (randbuff));
+ if (verbose)
+ printf("SSL seeding: %s\n", (RAND_status()==1 ? "OK" : "Failed") );
+
/* Initialize SSL context */
SSLeay_add_ssl_algorithms ();
meth = SSLv23_client_method ();