Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed

Conversation

kailun-qin
Copy link
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
Copy link
Member

bagder commented Apr 8, 2024

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.

None yet

2 participants