Added function to resolve a DNS name to a linked list of ip addresses.
Changed function match_address to compare the sets of the resolved certificate
addresses and the that of the server hostname.

  * Fix also whitespace errors.