aboutsummaryrefslogtreecommitdiff
path: root/ssl/ssltest.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-06-12 11:07:52 +0000
committerBodo Möller <bodo@openssl.org>1999-06-12 11:07:52 +0000
commitd7fcc7f6c697fb98098820ea18f6d3bc5ee0883b (patch)
tree9430b6b2fe0747ee75d317cb2148e3d22689704b /ssl/ssltest.c
parente0f12c41de7f0de97842802936608d0b7b66c9cb (diff)
downloadopenssl-d7fcc7f6c697fb98098820ea18f6d3bc5ee0883b.zip
openssl-d7fcc7f6c697fb98098820ea18f6d3bc5ee0883b.tar.gz
openssl-d7fcc7f6c697fb98098820ea18f6d3bc5ee0883b.tar.bz2
Bugfix.
Diffstat (limited to 'ssl/ssltest.c')
-rw-r--r--ssl/ssltest.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c
index 91813dc..2648304 100644
--- a/ssl/ssltest.c
+++ b/ssl/ssltest.c
@@ -705,9 +705,21 @@ int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count)
if (!progress && !prev_progress)
if (cw_num > 0 || cr_num > 0 || sw_num > 0 || sr_num > 0)
- /* can't happen */
{
fprintf(stderr, "ERROR: got stuck\n");
+ if (strcmp("SSLv2", SSL_get_version(c_ssl)) == 0)
+ {
+ fprintf(stderr, "This can happen for SSL2 because "
+ "CLIENT-FINISHED and SERVER-VERIFY are written \n"
+ "concurrently ...");
+ if (strncmp("2SCF", SSL_state_string(c_ssl), 4) == 0
+ && strncmp("2SSV", SSL_state_string(s_ssl), 4) == 0)
+ {
+ fprintf(stderr, " ok.\n");
+ goto end;
+ }
+ }
+ fprintf(stderr, " ERROR.\n");
goto err;
}
prev_progress = progress;
@@ -721,6 +733,7 @@ int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count)
SSL_get_version(c_ssl),
SSL_CIPHER_get_version(ciph),
SSL_CIPHER_get_name(ciph));
+ end:
ret = 0;
err: