Don't finish the handshake twice
authorMatt Caswell <matt@openssl.org>
Fri, 6 Nov 2015 09:47:18 +0000 (09:47 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 6 Nov 2015 15:32:44 +0000 (15:32 +0000)
commite6575156204dfd50a63f6afbe98f6714d0799764
treee39f085c02fac2859f2ea73cb2b449725e638a29
parentb8fb59897b707d53137a66ec054173c161a9f0ae
Don't finish the handshake twice

We finish the handshake when we move into the TLS_ST_OK state. At various
points we were also unnecessarily finishing it when we were reading/writing
the Finished message. It's much simpler just to do it in TLS_ST_OK, so
remove the other calls.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
ssl/statem/statem_clnt.c
ssl/statem/statem_lib.c
ssl/statem/statem_srvr.c