diff options
author | lloyd <[email protected]> | 2012-07-28 22:24:55 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-07-28 22:24:55 +0000 |
commit | 3a97773e0e56a7568cc11821fb347fed3fdb7b92 (patch) | |
tree | 8831ea19ffc8286badc7b9bcf644b5ff86c3df00 /doc/examples | |
parent | 8aca7772a96c0ff92bcf9cd98993c1b33de2d761 (diff) |
OpenSSL gets cranky if we send application data mid handshake
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/tls_client.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/examples/tls_client.cpp b/doc/examples/tls_client.cpp index 5373227ce..efd5e068c 100644 --- a/doc/examples/tls_client.cpp +++ b/doc/examples/tls_client.cpp @@ -200,9 +200,8 @@ void doit(RandomNumberGenerator& rng, { std::cout << "Client initiated renegotiation\n"; client.renegotiate((buf[0] == 'R')); - } - - if(buf[0] == 'H') + } + else if(buf[0] == 'H') client.heartbeat(&buf[1], got-1); else client.send(buf, got); |