OVMS3-idf/components/openssl
Andy Green effc6c6d0d openssl wrapper: introduce X509_VERIFY_PARAM_set1_host
This lets the user code set the mbedtls hostname using the standard OpenSSL
X509_VERIFY_PARAM_set1_host() API semantics.

The API takes an X509_VERIFY_PARAM pointer.  We use the fact that is
a composed member of the SSL struct to derive the SSL pointer.

The X509_VERIFY_PARAM_set1_host() is unusual in that it can accept a
NUL terminated C string as usual, or a nonterminated pointer + length.
This implementation converts the latter to the former if given, before
using it.

This is enough for user code to get the openssl wrapper to make
mbedtls confirm the CN on the peer cert belongs to the hostname used
to reach it, by doing, eg

	X509_VERIFY_PARAM_set1_host(SSL_get0_param(myssl), myhostname, 0);

Merges https://github.com/espressif/esp-idf/pull/980
2017-11-20 16:24:06 +11:00
..
include openssl wrapper: introduce X509_VERIFY_PARAM_set1_host 2017-11-20 16:24:06 +11:00
library openssl wrapper: introduce SSL_get0_param 2017-11-20 16:23:18 +11:00
platform openssl wrapper: introduce X509_VERIFY_PARAM_set1_host 2017-11-20 16:24:06 +11:00
component.mk build system: Refactor component.mk to not need component_common.mk 2016-11-10 15:52:22 +11:00
Kconfig components/openssl: refactor openssl debugging and assert function 2017-01-17 10:15:26 +08:00
OpenSSL-APIs.rst feature/openssl: correct wrong description 2016-10-31 14:13:00 +08:00