Postpone resolving of DNS names of server.
authorLinus Nordberg <linus@nordu.net>
Wed, 25 Apr 2012 15:41:27 +0000 (17:41 +0200)
committerLinus Nordberg <linus@nordu.net>
Wed, 25 Apr 2012 15:41:27 +0000 (17:41 +0200)
commit19b5ce7ac3f838e689ae6e6b1e4a0c114b44ce67
tree8b1cf80d30846833111d1e6733a8031408fb2321
parent41ca60fee8c14f74af22bbeeda56574e883c21a9
Postpone resolving of DNS names of server.

We used to resolve DNS names when reading configuration.  We now do it
in event_init_socket() and cache the result in the connection object.

The imminent need for changing this is to keep host names around for
X509 certificate verification (CNAME and subjectAltName).  This will
also help later when we implement server failover (and later, when
people want to do more dynamic configuration, f.ex. NAPTR).
lib/conf.c
lib/event.c
lib/include/radsec/radsec-impl.h
lib/packet.c
lib/radsec.c