Hi,

Updated the patch set according to comments. If /dev/urandom is not found,
fall back to glibc functions. Therefore /dev/urandom is no longer needed
at compile time, and the README need not be updated with new requirements
on special files.

I also attacked gdbus and made a slimmer version of the same code for
random number usage for the dhcp part.

As more code might move under or created in util, I kept the explicit
initialization function.

Cheers,

        Patrik


Patrik Flykt (7):
  util: Use proper source for random numbers
  dnsproxy: Use the newly provided function for getting random values
  dhcpv6: Use the newly provided function for getting random values
  config: Use the newly provided function for getting random values
  gdhcp: Add a function to fetch random values
  gdhcp: Use dhcp_get_random() where necessary
  dhcp: Clean up resources initialized by dhcp_get_random()

 Makefile.am    |  2 +-
 gdhcp/client.c | 23 +++++++++------
 gdhcp/common.c | 41 ++++++++++++++++++++++++++-
 gdhcp/gdhcp.h  |  4 +++
 gdhcp/ipv4ll.c | 23 ++++++---------
 gdhcp/ipv4ll.h |  2 +-
 src/config.c   |  4 ++-
 src/connman.h  |  4 +++
 src/dhcp.c     |  2 ++
 src/dhcpv6.c   | 15 ++++++----
 src/dnsproxy.c |  8 ++++--
 src/main.c     |  2 ++
 src/util.c     | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 13 files changed, 182 insertions(+), 36 deletions(-)
 create mode 100644 src/util.c

-- 
2.1.1

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to