diff options
Diffstat (limited to 'Swiften/TLS/OpenSSL/OpenSSLContext.cpp')
| -rw-r--r-- | Swiften/TLS/OpenSSL/OpenSSLContext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Swiften/TLS/OpenSSL/OpenSSLContext.cpp b/Swiften/TLS/OpenSSL/OpenSSLContext.cpp index e9889bc..5692e74 100644 --- a/Swiften/TLS/OpenSSL/OpenSSLContext.cpp +++ b/Swiften/TLS/OpenSSL/OpenSSLContext.cpp | |||
| @@ -229,6 +229,7 @@ void OpenSSLContext::doAccept() { | |||
| 229 | onConnected(); | 229 | onConnected(); |
| 230 | // The following call is important so the client knowns the handshake is finished. | 230 | // The following call is important so the client knowns the handshake is finished. |
| 231 | sendPendingDataToNetwork(); | 231 | sendPendingDataToNetwork(); |
| 232 | sendPendingDataToApplication(); | ||
| 232 | break; | 233 | break; |
| 233 | } | 234 | } |
| 234 | case SSL_ERROR_WANT_READ: | 235 | case SSL_ERROR_WANT_READ: |
| @@ -254,6 +255,9 @@ void OpenSSLContext::doConnect() { | |||
| 254 | //const char* comp = SSL_get_current_compression(handle_.get()); | 255 | //const char* comp = SSL_get_current_compression(handle_.get()); |
| 255 | //std::cout << "Compression: " << SSL_COMP_get_name(comp) << std::endl; | 256 | //std::cout << "Compression: " << SSL_COMP_get_name(comp) << std::endl; |
| 256 | onConnected(); | 257 | onConnected(); |
| 258 | // The following is needed since OpenSSL 1.1.1 for the server to be able to calculate the | ||
| 259 | // TLS finish message. | ||
| 260 | sendPendingDataToNetwork(); | ||
| 257 | break; | 261 | break; |
| 258 | } | 262 | } |
| 259 | case SSL_ERROR_WANT_READ: | 263 | case SSL_ERROR_WANT_READ: |
Swift