syncthing/lib/model
Jakob Borg f24676ba5a
lib/tlsutil: Enable TLS 1.3 when available, on test builds (fixes #5065) (#5558)
* lib/tlsutil: Enable TLS 1.3 when available, on test builds (fixes #5065)

This enables TLS 1.3 negotiation on Go 1.12 by setting the GODEBUG
variable. For now, this just gets enabled on test versions (those with a
dash in the version number).

Users wishing to enable this on production builds can set GODEBUG
manually.

The string representation of connections now includes the TLS version
and cipher suite. This becomes part of the log output on connections.
That is, when talking to an old client:

    Established secure connection .../TLS1.2-TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256

and now potentially:

    Established secure connection .../TLS1.3-TLS_AES_128_GCM_SHA256

(The cipher suite was there previously in the log output, but not the
TLS version.)

I also added this info as a new Crypto() method on the connection, and
propagate this out to the API and GUI, where it can be seen in the
connection address hover (although with bad word wrapping sometimes).

* wip

* wip
2019-02-26 11:49:02 +01:00
..
testdata lib/fs, lib/model: Make tests caching compatible (fixes #4749) (#4804) 2018-03-13 14:03:10 +01:00
bytesemaphore_test.go lib/model: Allow limiting number of concurrent scans (fixes #2760) (#4888) 2018-12-05 08:40:05 +01:00
bytesemaphore.go lib/model: Allow limiting number of concurrent scans (fixes #2760) (#4888) 2018-12-05 08:40:05 +01:00
debug.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
deviceactivity_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
deviceactivity.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
devicedownloadstate_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
devicedownloadstate.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
doc.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
folder_recvonly_test.go all: Hide implementations behind interfaces for mocked testing (#5548) 2019-02-26 08:09:25 +00:00
folder_recvonly.go all: Hide implementations behind interfaces for mocked testing (#5548) 2019-02-26 08:09:25 +00:00
folder_sendonly.go all: Hide implementations behind interfaces for mocked testing (#5548) 2019-02-26 08:09:25 +00:00
folder_sendrecv_test.go all: Hide implementations behind interfaces for mocked testing (#5548) 2019-02-26 08:09:25 +00:00
folder_sendrecv.go all: Hide implementations behind interfaces for mocked testing (#5548) 2019-02-26 08:09:25 +00:00
folder_test.go all: Display errors while scanning in web UI (fixes #4480) (#5215) 2018-11-07 11:04:41 +01:00
folder.go all: Hide implementations behind interfaces for mocked testing (#5548) 2019-02-26 08:09:25 +00:00
folderstate.go lib/model: Allow limiting number of concurrent scans (fixes #2760) (#4888) 2018-12-05 08:40:05 +01:00
model_test.go lib/tlsutil: Enable TLS 1.3 when available, on test builds (fixes #5065) (#5558) 2019-02-26 11:49:02 +01:00
model.go lib/tlsutil: Enable TLS 1.3 when available, on test builds (fixes #5065) (#5558) 2019-02-26 11:49:02 +01:00
progressemitter_test.go lib/model: Various model test fixes and polish (#5528) 2019-02-13 18:54:04 +00:00
progressemitter.go all: Hide implementations behind interfaces for mocked testing (#5548) 2019-02-26 08:09:25 +00:00
queue_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
queue.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
requests_test.go all: Hide implementations behind interfaces for mocked testing (#5548) 2019-02-26 08:09:25 +00:00
sentdownloadstate.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
sharedpullerstate_test.go lib/model: Run more tests in tmp dir (#5527) 2019-02-12 16:04:04 +01:00
sharedpullerstate.go all: Implement variable sized blocks (fixes #4807) 2018-04-16 19:08:50 +01:00
testos_test.go lib/model: Helperize test os and remove error return value (#5507) 2019-02-05 18:01:05 +00:00
util.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00