[Nagiosplug-checkins] CVS: nagiosplug/plugins check_http.c,1.22,1.23
Ton Voon
tonvoon at users.sourceforge.net
Tue Feb 18 13:57:10 CET 2003
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv4333
Modified Files:
check_http.c
Log Message:
Fixed compiler warning and increased the SSL random key for a Solaris PRNG problem
Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** check_http.c 12 Feb 2003 22:27:43 -0000 1.22
--- check_http.c 18 Feb 2003 21:56:24 -0000 1.23
***************
*** 152,156 ****
int check_cert = FALSE;
int days_till_exp;
! unsigned char *randbuff;
SSL_CTX *ctx;
SSL *ssl;
--- 152,156 ----
int check_cert = FALSE;
int days_till_exp;
! char *randbuff = "";
SSL_CTX *ctx;
SSL *ssl;
***************
*** 867,872 ****
SSL_METHOD *meth;
! asprintf (&randbuff, "%s", "qwertyuiopasdfghjkl");
RAND_seed (randbuff, strlen (randbuff));
/* Initialize SSL context */
SSLeay_add_ssl_algorithms ();
--- 867,875 ----
SSL_METHOD *meth;
! 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 ();
More information about the Commits
mailing list