File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 15
15
* Add explicit integer to enumeration type casts to example program
16
16
programs/pkey/gen_key which previously led to compilation failure
17
17
on some toolchains. Reported by phoenixmcallister. Fixes #2170.
18
+ * Clarify documentation of mbedtls_ssl_set_own_cert() regarding the absence
19
+ of check for certificate/key matching. Reported by Attila Molnar, #507.
18
20
19
21
= mbed TLS 2.1.17 branch released 2018-11-30
20
22
Original file line number Diff line number Diff line change @@ -1408,6 +1408,14 @@ void mbedtls_ssl_conf_ca_chain( mbedtls_ssl_config *conf,
1408
1408
*
1409
1409
* \note On client, only the first call has any effect.
1410
1410
*
1411
+ * \note The provided \p pk_key needs to match the public key in the
1412
+ * first certificate in \p own_cert, or all handshakes using
1413
+ * that certificate will fail. It is your responsibility
1414
+ * to ensure that; this function will not perform any check.
1415
+ * You may use mbedtls_pk_check_pair() in order to perform
1416
+ * this check yourself, but be aware that this function can
1417
+ * be computationally expensive on some key types.
1418
+ *
1411
1419
* \param conf SSL configuration
1412
1420
* \param own_cert own public certificate chain
1413
1421
* \param pk_key own private key
You can’t perform that action at this time.
0 commit comments