mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 14:41:25 +00:00
With OpenSSL 1.0.2 and earlier: disable client-side renegotiation.
Fixed issue #49 Fixes BZ#1904459 Signed-off-by: Julien Ropé <jrope@redhat.com> Reported-by: BlackKD Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
ca5bbc5692
commit
95a0cfac8a
@ -523,6 +523,11 @@ RedStreamSslStatus red_stream_ssl_accept(RedStream *stream)
|
||||
return RED_STREAM_SSL_STATUS_OK;
|
||||
}
|
||||
|
||||
#ifndef SSL_OP_NO_RENEGOTIATION
|
||||
// With OpenSSL 1.0.2 and earlier: disable client-side renogotiation
|
||||
stream->priv->ssl->s3->flags |= SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS;
|
||||
#endif
|
||||
|
||||
ssl_error = SSL_get_error(stream->priv->ssl, return_code);
|
||||
if (return_code == -1 && (ssl_error == SSL_ERROR_WANT_READ ||
|
||||
ssl_error == SSL_ERROR_WANT_WRITE)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user