This function is documented as:
Set hostname for ServerName TLS extension (client-side only)
... which sounds like it is used for SNI (only) ?
But if that is so, how do I tell mbedtls which host name we connect to, to use when verifying the server certificate? Isn't it so that this function is used to for that purpose as well? Shouldn't that then be documented? If not, how do I set it?
If this function is used for both, how do I set only the host name to verify the cert with, without setting the SNI name to the same?
This function is documented as:
... which sounds like it is used for SNI (only) ?
But if that is so, how do I tell mbedtls which host name we connect to, to use when verifying the server certificate? Isn't it so that this function is used to for that purpose as well? Shouldn't that then be documented? If not, how do I set it?
If this function is used for both, how do I set only the host name to verify the cert with, without setting the SNI name to the same?