]> git.ipfire.org Git - thirdparty/curl.git/commit
mbedtls: fix private member designations for v3.1.0
authorValentin Richter <42276475+trackpadpro@users.noreply.github.com>
Sun, 2 Jan 2022 23:00:15 +0000 (18:00 -0500)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 Jan 2022 07:56:31 +0000 (08:56 +0100)
commit75b832c8a034f93df8675c05f27e6ee9bbab5ded
tree930ee45cebd981b07987688d3b30f29197e6ad8d
parent37b8a16fa759c6851c9b016dd3383b763aed23cc
mbedtls: fix private member designations for v3.1.0

"As a last resort, you can access the field foo of a structure bar by
writing bar.MBEDTLS_PRIVATE(foo). Note that you do so at your own risk,
since such code is likely to break in a future minor version of Mbed
TLS." -
https://github.com/ARMmbed/mbedtls/blob/f2d1199edc5834df4297f247f213e614f7782d1d/docs/3.0-migration-guide.md

That future minor version is v3.1.0. I set the >= to == for the version
checks because v3.1.0 is a release, and I am not sure when the private
designation was reverted after v3.0.0.

Closes #8214
lib/vtls/mbedtls.c