@@ -583,51 +583,52 @@ int MAIN(int argc, char **argv)
583583 BIO_printf (bio_err , "OCSP utility\n" );
584584 BIO_printf (bio_err , "Usage ocsp [options]\n" );
585585 BIO_printf (bio_err , "where options are\n" );
586- BIO_printf (bio_err , "-out file output filename\n" );
587- BIO_printf (bio_err , "-issuer file issuer certificate\n" );
588- BIO_printf (bio_err , "-cert file certificate to check\n" );
589- BIO_printf (bio_err , "-serial n serial number to check\n" );
590- BIO_printf (bio_err , "-signer file certificate to sign OCSP request with\n" );
591- BIO_printf (bio_err , "-signkey file private key to sign OCSP request with\n" );
592- BIO_printf (bio_err , "-sign_other file additional certificates to include in signed request\n" );
593- BIO_printf (bio_err , "-no_certs don't include any certificates in signed request\n" );
594- BIO_printf (bio_err , "-req_text print text form of request\n" );
595- BIO_printf (bio_err , "-resp_text print text form of response\n" );
596- BIO_printf (bio_err , "-text print text form of request and response\n" );
597- BIO_printf (bio_err , "-reqout file write DER encoded OCSP request to \"file\"\n" );
598- BIO_printf (bio_err , "-respout file write DER encoded OCSP reponse to \"file\"\n" );
599- BIO_printf (bio_err , "-reqin file read DER encoded OCSP request from \"file\"\n" );
600- BIO_printf (bio_err , "-respin file read DER encoded OCSP reponse from \"file\"\n" );
601- BIO_printf (bio_err , "-nonce add OCSP nonce to request\n" );
602- BIO_printf (bio_err , "-no_nonce don't add OCSP nonce to request\n" );
603- BIO_printf (bio_err , "-url URL OCSP responder URL\n" );
604- BIO_printf (bio_err , "-host host:n send OCSP request to host on port n\n" );
605- BIO_printf (bio_err , "-path path to use in OCSP request\n" );
606- BIO_printf (bio_err , "-CApath dir trusted certificates directory\n" );
607- BIO_printf (bio_err , "-CAfile file trusted certificates file\n" );
608- BIO_printf (bio_err , "-VAfile file validator certificates file\n" );
609- BIO_printf (bio_err , "-validity_period n maximum validity discrepancy in seconds\n" );
610- BIO_printf (bio_err , "-status_age n maximum status age in seconds\n" );
611- BIO_printf (bio_err , "-noverify don't verify response at all\n" );
612- BIO_printf (bio_err , "-verify_other file additional certificates to search for signer\n" );
613- BIO_printf (bio_err , "-trust_other don't verify additional certificates\n" );
614- BIO_printf (bio_err , "-no_intern don't search certificates contained in response for signer\n" );
586+ BIO_printf (bio_err , "-out file output filename\n" );
587+ BIO_printf (bio_err , "-issuer file issuer certificate\n" );
588+ BIO_printf (bio_err , "-cert file certificate to check\n" );
589+ BIO_printf (bio_err , "-serial n serial number to check\n" );
590+ BIO_printf (bio_err , "-signer file certificate to sign OCSP request with\n" );
591+ BIO_printf (bio_err , "-signkey file private key to sign OCSP request with\n" );
592+ BIO_printf (bio_err , "-sign_other file additional certificates to include in signed request\n" );
593+ BIO_printf (bio_err , "-no_certs don't include any certificates in signed request\n" );
594+ BIO_printf (bio_err , "-req_text print text form of request\n" );
595+ BIO_printf (bio_err , "-resp_text print text form of response\n" );
596+ BIO_printf (bio_err , "-text print text form of request and response\n" );
597+ BIO_printf (bio_err , "-reqout file write DER encoded OCSP request to \"file\"\n" );
598+ BIO_printf (bio_err , "-respout file write DER encoded OCSP reponse to \"file\"\n" );
599+ BIO_printf (bio_err , "-reqin file read DER encoded OCSP request from \"file\"\n" );
600+ BIO_printf (bio_err , "-respin file read DER encoded OCSP reponse from \"file\"\n" );
601+ BIO_printf (bio_err , "-nonce add OCSP nonce to request\n" );
602+ BIO_printf (bio_err , "-no_nonce don't add OCSP nonce to request\n" );
603+ BIO_printf (bio_err , "-url URL OCSP responder URL\n" );
604+ BIO_printf (bio_err , "-host host:n send OCSP request to host on port n\n" );
605+ BIO_printf (bio_err , "-path path to use in OCSP request\n" );
606+ BIO_printf (bio_err , "-CApath dir trusted certificates directory\n" );
607+ BIO_printf (bio_err , "-CAfile file trusted certificates file\n" );
608+ BIO_printf (bio_err , "-VAfile file validator certificates file\n" );
609+ BIO_printf (bio_err , "-validity_period n maximum validity discrepancy in seconds\n" );
610+ BIO_printf (bio_err , "-status_age n maximum status age in seconds\n" );
611+ BIO_printf (bio_err , "-noverify don't verify response at all\n" );
612+ BIO_printf (bio_err , "-verify_other file additional certificates to search for signer\n" );
613+ BIO_printf (bio_err , "-trust_other don't verify additional certificates\n" );
614+ BIO_printf (bio_err , "-no_intern don't search certificates contained in response for signer\n" );
615615 BIO_printf (bio_err , "-no_signature_verify don't check signature on response\n" );
616- BIO_printf (bio_err , "-no_cert_verify don't check signing certificate\n" );
617- BIO_printf (bio_err , "-no_chain don't chain verify response\n" );
618- BIO_printf (bio_err , "-no_cert_checks don't do additional checks on signing certificate\n" );
619- BIO_printf (bio_err , "-port num port to run responder on\n" );
620- BIO_printf (bio_err , "-index file certificate status index file\n" );
621- BIO_printf (bio_err , "-CA file CA certificate\n" );
622- BIO_printf (bio_err , "-rsigner file responder certificate to sign responses with\n" );
623- BIO_printf (bio_err , "-rkey file responder key to sign responses with\n" );
624- BIO_printf (bio_err , "-rother file other certificates to include in response\n" );
625- BIO_printf (bio_err , "-resp_no_certs don't include any certificates in response\n" );
626- BIO_printf (bio_err , "-nmin n number of minutes before next update\n" );
627- BIO_printf (bio_err , "-ndays n number of days before next update\n" );
628- BIO_printf (bio_err , "-resp_key_id identify reponse by signing certificate key ID\n" );
629- BIO_printf (bio_err , "-nrequest n number of requests to accept (default unlimited)\n" );
630- BIO_printf (bio_err , "-<dgst alg> use specified digest in the request\n" );
616+ BIO_printf (bio_err , "-no_cert_verify don't check signing certificate\n" );
617+ BIO_printf (bio_err , "-no_chain don't chain verify response\n" );
618+ BIO_printf (bio_err , "-no_cert_checks don't do additional checks on signing certificate\n" );
619+ BIO_printf (bio_err , "-port num port to run responder on\n" );
620+ BIO_printf (bio_err , "-index file certificate status index file\n" );
621+ BIO_printf (bio_err , "-CA file CA certificate\n" );
622+ BIO_printf (bio_err , "-rsigner file responder certificate to sign responses with\n" );
623+ BIO_printf (bio_err , "-rkey file responder key to sign responses with\n" );
624+ BIO_printf (bio_err , "-rother file other certificates to include in response\n" );
625+ BIO_printf (bio_err , "-resp_no_certs don't include any certificates in response\n" );
626+ BIO_printf (bio_err , "-nmin n number of minutes before next update\n" );
627+ BIO_printf (bio_err , "-ndays n number of days before next update\n" );
628+ BIO_printf (bio_err , "-resp_key_id identify reponse by signing certificate key ID\n" );
629+ BIO_printf (bio_err , "-nrequest n number of requests to accept (default unlimited)\n" );
630+ BIO_printf (bio_err , "-<dgst alg> use specified digest in the request\n" );
631+ BIO_printf (bio_err , "-timeout n timeout connection to OCSP responder after n seconds\n" );
631632 goto end ;
632633 }
633634
@@ -1398,16 +1399,7 @@ OCSP_RESPONSE *process_responder(BIO *err, OCSP_REQUEST *req,
13981399 if (use_ssl == 1 )
13991400 {
14001401 BIO * sbio ;
1401- #if !defined(OPENSSL_NO_SSL2 ) && !defined(OPENSSL_NO_SSL3 )
14021402 ctx = SSL_CTX_new (SSLv23_client_method ());
1403- #elif !defined(OPENSSL_NO_SSL3 )
1404- ctx = SSL_CTX_new (SSLv3_client_method ());
1405- #elif !defined(OPENSSL_NO_SSL2 )
1406- ctx = SSL_CTX_new (SSLv2_client_method ());
1407- #else
1408- BIO_printf (err , "SSL is disabled\n" );
1409- goto end ;
1410- #endif
14111403 if (ctx == NULL )
14121404 {
14131405 BIO_printf (err , "Error creating SSL context.\n" );
0 commit comments