Merge pull request #1312 from gilles-peskine-arm/ssl-hostname-unset-magic-pointer-3.6

Backport 3.6: require setting the hostname for verification