Loading apps/progs.h +3 −3 Original line number Diff line number Diff line Loading @@ -44,9 +44,9 @@ extern int smime_main(int argc,char *argv[]); extern int rand_main(int argc,char *argv[]); extern int engine_main(int argc,char *argv[]); extern int ocsp_main(int argc,char *argv[]); extern int srp_main(int argc,char *argv[]); extern int prime_main(int argc,char *argv[]); extern int ts_main(int argc,char *argv[]); extern int srp_main(int argc,char *argv[]); #define FUNC_TYPE_GENERAL 1 #define FUNC_TYPE_MD 2 Loading Loading @@ -146,11 +146,11 @@ FUNCTION functions[] = { #ifndef OPENSSL_NO_OCSP {FUNC_TYPE_GENERAL,"ocsp",ocsp_main}, #endif {FUNC_TYPE_GENERAL,"prime",prime_main}, {FUNC_TYPE_GENERAL,"ts",ts_main}, #ifndef OPENSSL_NO_SRP {FUNC_TYPE_GENERAL,"srp",srp_main}, #endif {FUNC_TYPE_GENERAL,"prime",prime_main}, {FUNC_TYPE_GENERAL,"ts",ts_main}, #ifndef OPENSSL_NO_MD2 {FUNC_TYPE_MD,"md2",dgst_main}, #endif Loading apps/progs.pl +2 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,8 @@ foreach (@ARGV) { print "#ifndef OPENSSL_NO_CMS\n${str}#endif\n"; } elsif ( ($_ =~ /^ocsp$/)) { print "#ifndef OPENSSL_NO_OCSP\n${str}#endif\n"; } elsif ( ($_ =~ /^srp$/)) { print "#ifndef OPENSSL_NO_SRP\n${str}#endif\n"; } else { print $str; } } Loading apps/s_server.c +8 −1 Original line number Diff line number Diff line Loading @@ -2275,6 +2275,7 @@ static int sv_body(char *hostname, int s, unsigned char *context) { static count=0; if (++count == 100) { count=0; SSL_renegotiate(con); } } #endif k=SSL_write(con,&(buf[l]),(unsigned int)i); #ifndef OPENSSL_NO_SRP while (SSL_get_error(con,k) == SSL_ERROR_WANT_X509_LOOKUP) { BIO_printf(bio_s_out,"LOOKUP renego during write\n"); Loading @@ -2285,6 +2286,7 @@ static int sv_body(char *hostname, int s, unsigned char *context) BIO_printf(bio_s_out,"LOOKUP not successful\n"); k=SSL_write(con,&(buf[l]),(unsigned int)i); } #endif switch (SSL_get_error(con,k)) { case SSL_ERROR_NONE: Loading Loading @@ -2332,6 +2334,7 @@ static int sv_body(char *hostname, int s, unsigned char *context) { again: i=SSL_read(con,(char *)buf,bufsize); #ifndef OPENSSL_NO_SRP while (SSL_get_error(con,i) == SSL_ERROR_WANT_X509_LOOKUP) { BIO_printf(bio_s_out,"LOOKUP renego during read\n"); Loading @@ -2342,6 +2345,7 @@ again: BIO_printf(bio_s_out,"LOOKUP not successful\n"); i=SSL_read(con,(char *)buf,bufsize); } #endif switch (SSL_get_error(con,i)) { case SSL_ERROR_NONE: Loading Loading @@ -2419,6 +2423,7 @@ static int init_ssl_connection(SSL *con) i=SSL_accept(con); #ifndef OPENSSL_NO_SRP while (i <= 0 && SSL_get_error(con,i) == SSL_ERROR_WANT_X509_LOOKUP) { BIO_printf(bio_s_out,"LOOKUP during accept %s\n",srp_callback_parm.login); Loading @@ -2429,6 +2434,7 @@ static int init_ssl_connection(SSL *con) BIO_printf(bio_s_out,"LOOKUP not successful\n"); i=SSL_accept(con); } #endif if (i <= 0) { if (BIO_sock_should_retry(i)) Loading Loading @@ -2649,6 +2655,7 @@ static int www_body(char *hostname, int s, unsigned char *context) if (hack) { i=SSL_accept(con); #ifndef OPENSSL_NO_SRP while (i <= 0 && SSL_get_error(con,i) == SSL_ERROR_WANT_X509_LOOKUP) { BIO_printf(bio_s_out,"LOOKUP during accept %s\n",srp_callback_parm.login); Loading @@ -2659,7 +2666,7 @@ static int www_body(char *hostname, int s, unsigned char *context) BIO_printf(bio_s_out,"LOOKUP not successful\n"); i=SSL_accept(con); } #endif switch (SSL_get_error(con,i)) { case SSL_ERROR_NONE: Loading Loading
apps/progs.h +3 −3 Original line number Diff line number Diff line Loading @@ -44,9 +44,9 @@ extern int smime_main(int argc,char *argv[]); extern int rand_main(int argc,char *argv[]); extern int engine_main(int argc,char *argv[]); extern int ocsp_main(int argc,char *argv[]); extern int srp_main(int argc,char *argv[]); extern int prime_main(int argc,char *argv[]); extern int ts_main(int argc,char *argv[]); extern int srp_main(int argc,char *argv[]); #define FUNC_TYPE_GENERAL 1 #define FUNC_TYPE_MD 2 Loading Loading @@ -146,11 +146,11 @@ FUNCTION functions[] = { #ifndef OPENSSL_NO_OCSP {FUNC_TYPE_GENERAL,"ocsp",ocsp_main}, #endif {FUNC_TYPE_GENERAL,"prime",prime_main}, {FUNC_TYPE_GENERAL,"ts",ts_main}, #ifndef OPENSSL_NO_SRP {FUNC_TYPE_GENERAL,"srp",srp_main}, #endif {FUNC_TYPE_GENERAL,"prime",prime_main}, {FUNC_TYPE_GENERAL,"ts",ts_main}, #ifndef OPENSSL_NO_MD2 {FUNC_TYPE_MD,"md2",dgst_main}, #endif Loading
apps/progs.pl +2 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,8 @@ foreach (@ARGV) { print "#ifndef OPENSSL_NO_CMS\n${str}#endif\n"; } elsif ( ($_ =~ /^ocsp$/)) { print "#ifndef OPENSSL_NO_OCSP\n${str}#endif\n"; } elsif ( ($_ =~ /^srp$/)) { print "#ifndef OPENSSL_NO_SRP\n${str}#endif\n"; } else { print $str; } } Loading
apps/s_server.c +8 −1 Original line number Diff line number Diff line Loading @@ -2275,6 +2275,7 @@ static int sv_body(char *hostname, int s, unsigned char *context) { static count=0; if (++count == 100) { count=0; SSL_renegotiate(con); } } #endif k=SSL_write(con,&(buf[l]),(unsigned int)i); #ifndef OPENSSL_NO_SRP while (SSL_get_error(con,k) == SSL_ERROR_WANT_X509_LOOKUP) { BIO_printf(bio_s_out,"LOOKUP renego during write\n"); Loading @@ -2285,6 +2286,7 @@ static int sv_body(char *hostname, int s, unsigned char *context) BIO_printf(bio_s_out,"LOOKUP not successful\n"); k=SSL_write(con,&(buf[l]),(unsigned int)i); } #endif switch (SSL_get_error(con,k)) { case SSL_ERROR_NONE: Loading Loading @@ -2332,6 +2334,7 @@ static int sv_body(char *hostname, int s, unsigned char *context) { again: i=SSL_read(con,(char *)buf,bufsize); #ifndef OPENSSL_NO_SRP while (SSL_get_error(con,i) == SSL_ERROR_WANT_X509_LOOKUP) { BIO_printf(bio_s_out,"LOOKUP renego during read\n"); Loading @@ -2342,6 +2345,7 @@ again: BIO_printf(bio_s_out,"LOOKUP not successful\n"); i=SSL_read(con,(char *)buf,bufsize); } #endif switch (SSL_get_error(con,i)) { case SSL_ERROR_NONE: Loading Loading @@ -2419,6 +2423,7 @@ static int init_ssl_connection(SSL *con) i=SSL_accept(con); #ifndef OPENSSL_NO_SRP while (i <= 0 && SSL_get_error(con,i) == SSL_ERROR_WANT_X509_LOOKUP) { BIO_printf(bio_s_out,"LOOKUP during accept %s\n",srp_callback_parm.login); Loading @@ -2429,6 +2434,7 @@ static int init_ssl_connection(SSL *con) BIO_printf(bio_s_out,"LOOKUP not successful\n"); i=SSL_accept(con); } #endif if (i <= 0) { if (BIO_sock_should_retry(i)) Loading Loading @@ -2649,6 +2655,7 @@ static int www_body(char *hostname, int s, unsigned char *context) if (hack) { i=SSL_accept(con); #ifndef OPENSSL_NO_SRP while (i <= 0 && SSL_get_error(con,i) == SSL_ERROR_WANT_X509_LOOKUP) { BIO_printf(bio_s_out,"LOOKUP during accept %s\n",srp_callback_parm.login); Loading @@ -2659,7 +2666,7 @@ static int www_body(char *hostname, int s, unsigned char *context) BIO_printf(bio_s_out,"LOOKUP not successful\n"); i=SSL_accept(con); } #endif switch (SSL_get_error(con,i)) { case SSL_ERROR_NONE: Loading