fixed some of the TLS problems
commitb1ff79dbb246e717fc4a62c7a615ca7ce9ccc302
authorAndrew Tridgell <tridge@samba.org>
Wed, 18 Feb 2009 03:46:57 +0000 (18 14:46 +1100)
committerAndrew Tridgell <tridge@samba.org>
Wed, 18 Feb 2009 03:46:57 +0000 (18 14:46 +1100)
tree425441cc5230695a522d9a316d954dcc6a29207c
parent0281166bb9bdf0015085b4f0a3049e7bf5036da2
fixed some of the TLS problems

This fixes two things in the TLS support for Samba4. The first is to
use a somewhat more correct hostname instead of 'Samba' when
generating the test certificates. That allows TLS test clients (such
as gnutls-cli) to connect to Samba4 using auto-generated certificates.

The second fix is to add a call to gcry_control() to tell gcrypt to
use /dev/urandom instead of /dev/random (on systems that support
that). That means that test certificate generation is now very fast,
which was previously an impediment to putting the TLS tests on the
build farm.
source4/lib/tls/config.m4
source4/lib/tls/tls.c
source4/lib/tls/tlscert.c