Use TLS version 1.0 or better
Use TLS version 1.0 or better

When creating a TLS socket, both spice-server and spice-gtk currently
call SSL_CTX_new(TLSv1_method()). The TLSv1_method() function set the
protocol version to TLS 1.0 exclusively. The correct way to support
multiple protocol versions is to call SSLv23_method() in spite of its
scary name. This method will enable all SSL/TLS protocol versions. The
protocol suite may be further narrowed down by setting respective
SSL_OP_NO_<version_code> options of SSL context.  This possibility is
used in this patch in order to block use of SSLv3 that is enabled by
default in openssl for client sockets as of now but spice has never used
it.

guodong/spice-gtk,guodong/spice-gtk,flexVDI/spice-gtk,freedesktop-unofficial-mirror/spice__spice-gtk,fgouget/spice-gtk,Fantu/spice-gtk,SPICE/spice-gtk,Fantu/spice-gtk,freedesktop-unofficial-mirror/spice__spice-gtk,Fantu/spice-gtk,freedesktop-unofficial-mirror/spice__spice-gtk,elmarco/spice-gtk,SPICE/spice-gtk,freedesktop-unofficial-mirror/spice__spice-gtk,guodong/spice-gtk,SPICE/spice-gtk,SPICE/spice-gtk,fgouget/spice-gtk,flexVDI/spice-gtk,elmarco/spice-gtk,guodong/spice-gtk,Fantu/spice-gtk,elmarco/spice-gtk,elmarco/spice-gtk,fgouget/spice-gtk