Skip to content

Commit 441c55d

Browse files
committed
Merge remote-tracking branch 'public/pr/2145' into mbedtls-2.1
2 parents bfc2610 + 162f682 commit 441c55d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Bugfix
1515
* Add explicit integer to enumeration type casts to example program
1616
programs/pkey/gen_key which previously led to compilation failure
1717
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.
1820

1921
= mbed TLS 2.1.17 branch released 2018-11-30
2022

include/mbedtls/ssl.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,6 +1408,14 @@ void mbedtls_ssl_conf_ca_chain( mbedtls_ssl_config *conf,
14081408
*
14091409
* \note On client, only the first call has any effect.
14101410
*
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+
*
14111419
* \param conf SSL configuration
14121420
* \param own_cert own public certificate chain
14131421
* \param pk_key own private key

0 commit comments

Comments
 (0)