Add basic gcov/lcov build support/analysis output - thanks to Matt Hargett for the suggestion
tlsdated: add dbus announcement support

Announce over DBus whenever we change the system time.

Change-Id: Ic6cbab5f703bebe489f513025336c53240ccce35
Signed-off-by: Elly Fong-Jones <ellyjones@chromium.org>
Merge pull request #60 from elly/dbus-announce

tlsdated: add dbus announcement support
update CHANGELOG to include lcov/gcov
Define a default DEFAULT_RTC_DEVICE and use it
Add some TODO items

Signed-off-by: Elly Fong-Jones <ellyjones@chromium.org>
Merge pull request #61 from elly/todo-update

Add some TODO items
Merge branch 'master' of github.com:ioerror/tlsdate
Actually define DEFAULT_RTC_DEVICE
Fix warnings.

Two sets of warnings: one about setresgid/setresuid prototypes in util.c, the
other about use of alloca() disabling stack protection in the unit tests.

Signed-off-by: Elly Fong-Jones <ellyjones@chromium.org>
(cherry picked from commit 39c89473304efea4f4e25a08bcf21a301e0d2213)
Merge pull request #62 from elly/warnings

Fix warnings; awesome - thanks for helping keep tlsdate builds clean!
Merge branch 'master' of github.com:ioerror/tlsdate
do not hard fail if we are unable to open hwclock fd
document default location of tlsdate-ca-roots.conf
tlsdated: add jitter (-j).

We check for steady-state updates randomly at any time between
(base-jitter,base+jitter). The jitter is generated using libc rand(), seeded
with either some bytes from /dev/urandom (if available) or the time (if not). We
don't particularly need strong randomness here.

Signed-off-by: Elly Fong-Jones <ellyjones@chromium.org>
(cherry picked from commit a8545b2af134f53247bd76507676bc0e3f1e6112)
Merge pull request #63 from elly/jitter

tlsdated: add jitter (-j).
tlsdated: exponential backoff in error cases.

If we're failing to get a tls connection, it may be because the remote host is
down or overloaded, in which case our current aggressive retry behavior is
counterproductive; instead, do exponential backoff each time a tlsdate request
fails.

Signed-off-by: Elly Fong-Jones <ellyjones@chromium.org>
Merge pull request #64 from elly/backoff

tlsdated: exponential backoff in error cases.
rwx permissions in save_disk_timestamp and write_time
https://github.com/ioerror/tlsdate/issues/66

The function save_disk_timestamp creates a file with user read, write and execute permissions. The execute permission is unnecessary because it is guaranteed to be a file with the time_t in it.

The proper permission is S_IRUSR | S_IWUSR.

Similarly the function write_time in src/tlsdated-unittest.c creates a file with user read, write and execute permissions.
tlsdated: support config files

The config file is a list of key/value pairs, separated by whitespace.

Signed-off-by: Elly Fong-Jones <ellyjones@chromium.org>