Split DoHandshake into DoHandshake and DoHandshakeComplete.
commitc4212c0b5cc733092b688b5eb1fa53eea1b15c08
authordavidben <davidben@chromium.org>
Tue, 12 May 2015 22:30:18 +0000 (12 15:30 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 12 May 2015 22:30:36 +0000 (12 22:30 +0000)
tree64145b74beeecd5eef681a7b37597fc3902d0c43
parente172214f4e0769bf82fb678930dd6e55009ff926
Split DoHandshake into DoHandshake and DoHandshakeComplete.

The rv == 1 case was getting a little unwieldy. This should hopefully be
simpler. DoHandshake converts the error to a net error code and decides which
state to transition to. DoHandshakeComplete handles the result of the
handshake.

BUG=none

Review URL: https://codereview.chromium.org/1126113004

Cr-Commit-Position: refs/heads/master@{#329518}
net/socket/ssl_client_socket_openssl.cc
net/socket/ssl_client_socket_openssl.h