diff options
author | Bodo Möller <bodo@openssl.org> | 2000-02-21 17:09:54 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-02-21 17:09:54 +0000 |
commit | a2a0158959e597188c10fbfeaf61888b2df2e587 (patch) | |
tree | a563afeb10919ce28f583523044924f6a817882f /ssl/s3_both.c | |
parent | e7ecc7d4ddcfc5d2a09dde220e3fc0b5e4b46289 (diff) | |
download | openssl-a2a0158959e597188c10fbfeaf61888b2df2e587.tar.gz |
Fix some bugs and document others
Diffstat (limited to 'ssl/s3_both.c')
-rw-r--r-- | ssl/s3_both.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ssl/s3_both.c b/ssl/s3_both.c index f1a9282f0e..035a937ba7 100644 --- a/ssl/s3_both.c +++ b/ssl/s3_both.c @@ -342,14 +342,15 @@ long ssl3_get_message(SSL *s, int st1, int stn, int mt, long max, int *ok) SSLerr(SSL_F_SSL3_GET_MESSAGE,SSL_R_UNEXPECTED_MESSAGE); goto f_err; } - if((mt < 0) && (*p == SSL3_MT_CLIENT_HELLO) && + if ((mt < 0) && (*p == SSL3_MT_CLIENT_HELLO) && (st1 == SSL3_ST_SR_CERT_A) && (stn == SSL3_ST_SR_CERT_B)) { /* At this point we have got an MS SGC second client * hello (maybe we should always allow the client to * start a new handshake?). We need to restart the mac. - */ + * Don't increment {num,total}_renegotiations because + * we have not completed the handshake. */ ssl3_init_finished_mac(s); } |