Introducing helper function to validate DNS name strings.
Introducing helper function to validate IPv4 address strings.
Validating SOCKS5 hostname more correctly.
Adding helper function that checks if string is a valid IPv6 address.
Checking if FQDN is actually IPv6 address string and handling that case.
Adding changes file for 13315.
Sending 'Not allowed' error message before closing the connection.
Use correct argument types for inet_pton.

(I blame whoever decided that using a void* for a union was a good
idea.)
fix indentation
Merge branch 'bug13315_squashed'

Conflicts:
	src/or/buffers.c