static int send_ocsp_response(BIO *cbio, OCSP_RESPONSE *resp)
{
- char http_resp[] =
+ static const char http_resp[] =
"HTTP/1.0 200 OK\r\nContent-type: application/ocsp-response\r\n"
"Content-Length: %d\r\n\r\n";
if (!cbio)
if (use_ssl == 1)
{
BIO *sbio;
- ctx = SSL_CTX_new(SSLv3_client_method());
+ ctx = SSL_CTX_new(SSLv23_client_method());
if (ctx == NULL)
{
BIO_printf(err, "Error creating SSL context.\n");
*/
static void s_time_usage(void)
{
- static char umsg[] = "\
+ static const char umsg[] = "\
-time arg - max number of seconds to collect data, default %d\n\
-verify arg - turn on peer certificate verification, arg == depth\n\
-cert arg - certificate file to use, PEM format assumed\n\
if (bio_err == NULL)
bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
- s_time_meth=SSLv3_client_method();
+ s_time_meth=SSLv23_client_method();
/* parse the command line arguments */
if( parseArgs( argc, argv ) < 0 )