mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-22 23:01:13 +00:00
Add compile-time option to enable X.509 CA callbacks
This commit is contained in:
parent
3f8d78411a
commit
288dedcc72
|
@ -1744,6 +1744,25 @@
|
||||||
*/
|
*/
|
||||||
//#define MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
|
//#define MBEDTLS_X509_ALLOW_UNSUPPORTED_CRITICAL_EXTENSION
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \def MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK
|
||||||
|
*
|
||||||
|
* If set, this enables the X.509 API `mbedtls_x509_crt_verify_with_cb()`
|
||||||
|
* and the SSL API `mbedtls_ssl_conf_ca_cb()` which allow users to configure
|
||||||
|
* the set of trusted certificates through a callback instead of a linked
|
||||||
|
* list.
|
||||||
|
*
|
||||||
|
* This is useful for example in environments where a large number of trusted
|
||||||
|
* certificates is present and storing them in a linked list isn't efficient
|
||||||
|
* enough, or when the set of trusted certificates changes frequently.
|
||||||
|
*
|
||||||
|
* See the documentation of `mbedtls_x509_crt_verify_with_cb()` and
|
||||||
|
* `mbedtls_ssl_conf_ca_cb()` for more information.
|
||||||
|
*
|
||||||
|
* Uncomment to enable trusted certificate callbacks.
|
||||||
|
*/
|
||||||
|
//#define MBEDTLS_X509_TRUSTED_CERTIFICATE_CALLBACK
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \def MBEDTLS_X509_CHECK_KEY_USAGE
|
* \def MBEDTLS_X509_CHECK_KEY_USAGE
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue