SSL does not authenticate remote hostname
Brought to you by:
chris_kohlhoff
Whilst certificates are checked against the relevant root CA signatures, there's no obvious way of making sure that the SSL certificate has been assigned to the correct server. The example doesn't seem to do this.
If there is no way of fixing this it mean asio's SSL is prone to man-in-the-middle attacks.
If there is a way of doing this, an example would be handy.