mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
ec8a748514
LoadOrGenerateCertificate() takes two file path arguments, but then uses the locations package to determine the actual path. Fix that with a minimally invasive change, by using the arguments instead. Factor out GenerateCertificate(). The only caller of this function is cmd/syncthing, which passes the same values, so this is technically a no-op. * lib/tlsutil: Make storing generated certificate optional. Avoid temporary cert and key files in tests, keep cert in memory. |
||
---|---|---|
.. | ||
mocks | ||
cache_test.go | ||
cache.go | ||
debug.go | ||
discover.go | ||
doc.go | ||
global_test.go | ||
global.go | ||
local_test.go | ||
local.go | ||
local.pb.go | ||
manager.go |