@@ -266,7 +266,6 @@ static int s_brief = 0;
266266static char * keymatexportlabel = NULL ;
267267static int keymatexportlen = 20 ;
268268
269- static int hack = 0 ;
270269#ifndef OPENSSL_NO_ENGINE
271270static char * engine_id = NULL ;
272271#endif
@@ -423,7 +422,6 @@ static void s_server_init(void)
423422 s_msg = 0 ;
424423 s_quiet = 0 ;
425424 s_brief = 0 ;
426- hack = 0 ;
427425# ifndef OPENSSL_NO_ENGINE
428426 engine_id = NULL ;
429427# endif
@@ -553,8 +551,6 @@ static void sv_usage(void)
553551 BIO_printf (bio_err ,
554552 "-no_resume_ephemeral - Disable caching and tickets if ephemeral (EC)DH is used\n" );
555553 BIO_printf (bio_err , " -bugs - Turn on SSL bug compatibility\n" );
556- BIO_printf (bio_err ,
557- " -hack - workaround for early Netscape code\n" );
558554 BIO_printf (bio_err ,
559555 " -www - Respond to a 'GET /' with a status page\n" );
560556 BIO_printf (bio_err ,
@@ -1333,8 +1329,6 @@ int MAIN(int argc, char *argv[])
13331329 sdebug = 1 ;
13341330 } else if (strcmp (* argv , "- security_debug_verbose ") == 0 ) {
13351331 sdebug = 2 ;
1336- } else if (strcmp (* argv , "- hack ") == 0 ) {
1337- hack = 1 ;
13381332 } else if (strcmp (* argv , "- state ") == 0 ) {
13391333 state = 1 ;
13401334 } else if (strcmp (* argv , "- crlf ") == 0 ) {
@@ -1712,8 +1706,6 @@ int MAIN(int argc, char *argv[])
17121706 BIO_printf (bio_err , "id_prefix '%s' set.\n" , session_id_prefix );
17131707 }
17141708 SSL_CTX_set_quiet_shutdown (ctx , 1 );
1715- if (hack )
1716- SSL_CTX_set_options (ctx , SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG );
17171709 if (exc )
17181710 ssl_ctx_set_excert (ctx , exc );
17191711
@@ -1777,8 +1769,6 @@ int MAIN(int argc, char *argv[])
17771769 BIO_printf (bio_err , "id_prefix '%s' set.\n" , session_id_prefix );
17781770 }
17791771 SSL_CTX_set_quiet_shutdown (ctx2 , 1 );
1780- if (hack )
1781- SSL_CTX_set_options (ctx2 , SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG );
17821772 if (exc )
17831773 ssl_ctx_set_excert (ctx2 , exc );
17841774
@@ -2729,43 +2719,6 @@ static int www_body(char *hostname, int s, int stype, unsigned char *context)
27292719 }
27302720
27312721 for (;;) {
2732- if (hack ) {
2733- i = SSL_accept (con );
2734- #ifndef OPENSSL_NO_SRP
2735- while (i <= 0
2736- && SSL_get_error (con , i ) == SSL_ERROR_WANT_X509_LOOKUP ) {
2737- BIO_printf (bio_s_out , "LOOKUP during accept %s\n" ,
2738- srp_callback_parm .login );
2739- srp_callback_parm .user =
2740- SRP_VBASE_get_by_user (srp_callback_parm .vb ,
2741- srp_callback_parm .login );
2742- if (srp_callback_parm .user )
2743- BIO_printf (bio_s_out , "LOOKUP done %s\n" ,
2744- srp_callback_parm .user -> info );
2745- else
2746- BIO_printf (bio_s_out , "LOOKUP not successful\n" );
2747- i = SSL_accept (con );
2748- }
2749- #endif
2750- switch (SSL_get_error (con , i )) {
2751- case SSL_ERROR_NONE :
2752- break ;
2753- case SSL_ERROR_WANT_WRITE :
2754- case SSL_ERROR_WANT_READ :
2755- case SSL_ERROR_WANT_X509_LOOKUP :
2756- continue ;
2757- case SSL_ERROR_SYSCALL :
2758- case SSL_ERROR_SSL :
2759- case SSL_ERROR_ZERO_RETURN :
2760- ret = 1 ;
2761- goto err ;
2762- /* break; */
2763- }
2764-
2765- SSL_renegotiate (con );
2766- SSL_write (con , NULL , 0 );
2767- }
2768-
27692722 i = BIO_gets (io , buf , bufsize - 1 );
27702723 if (i < 0 ) { /* error */
27712724 if (!BIO_should_retry (io )) {
0 commit comments