Skip to content

mbedtls: call mbedtls_ssl_setup() after RNG callback is set - #13314

Closed
kailun-qin wants to merge 1 commit into
curl:masterfrom
kailun-qin:mbedtls-call-setup-after-rng
Closed

mbedtls: call mbedtls_ssl_setup() after RNG callback is set#13314
kailun-qin wants to merge 1 commit into
curl:masterfrom
kailun-qin:mbedtls-call-setup-after-rng

Conversation

@kailun-qin

Copy link
Copy Markdown
Contributor

Since mbedTLS v3.6.0, the RNG check added in ssl_conf_check() will fail if no RNG is provided when calling mbedtls_ssl_setup().

Therefore, mbedtls_ssl_conf_rng() needs to be called before the SSL context is passed to mbedtls_ssl_setup().

Ref: Mbed-TLS/mbedtls@b422cab

Since mbedTLS v3.6.0, the RNG check added in ssl_conf_check() will fail
if no RNG is provided when calling mbedtls_ssl_setup().

Therefore, mbedtls_ssl_conf_rng() needs to be called before the SSL
context is passed to mbedtls_ssl_setup().

Ref: Mbed-TLS/mbedtls@b422cab

Signed-off-by: Kailun Qin <kailun.qin@intel.com>
@github-actions github-actions Bot added the TLS label Apr 8, 2024
@bagder bagder closed this in b679efc Apr 8, 2024
@bagder

bagder commented Apr 8, 2024

Copy link
Copy Markdown
Member

Thanks!

keith pushed a commit to keith/curl that referenced this pull request May 3, 2024
Since mbedTLS v3.6.0, the RNG check added in ssl_conf_check() will fail
if no RNG is provided when calling mbedtls_ssl_setup().

Therefore, mbedtls_ssl_conf_rng() needs to be called before the SSL
context is passed to mbedtls_ssl_setup().

Ref: Mbed-TLS/mbedtls@b422cab

Signed-off-by: Kailun Qin <kailun.qin@intel.com>
Closes curl#13314
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants