[openssl] Support wildcard hostname verification

Hey Alan... I need wildcard support in the OpenSSL hostname verification. This is what I came up with, mostly borrowed code from Curl 7.35 (which has a similar MIT license). The Curl code is in separate files so that the exact license text can appear with the code.