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: disable MBEDTLS_VERSION_C #3553

Closed
MAntoniak opened this issue Feb 11, 2019 · 2 comments
Closed

mbedtls: disable MBEDTLS_VERSION_C #3553

MAntoniak opened this issue Feb 11, 2019 · 2 comments

Comments

@MAntoniak
Copy link
Contributor

MAntoniak commented Feb 11, 2019

I did this

I am trying to build a curl library using the mbedtls library. In mbedtls has disable run-time version information (comment MBEDTLS_VERSION_C). The Curl_mbedtls_version function refers to the mbedtls_version_get_number function, which is disabled. As a result, it is not possible to build a project.

I expected the following

Build succeeded.

Perhaps using the MBEDTLS_VERSION_STRING may solve this problem:
return msnprintf(buffer, size, "mbedTLS/%s", MBEDTLS_VERSION_STRING);

curl/libcurl version

[curl -V output]
curl 7.64.0 mbedTls/2.7.9
Release-Date: 2019-02-06
Protocols: http

operating system

Embedded system.

@bagder
Copy link
Member

bagder commented Feb 11, 2019

@MAntoniak does my proposed fix in #3556 work for you?

@MAntoniak
Copy link
Contributor Author

MAntoniak commented Feb 12, 2019

Yes, it works. Thanks!

@bagder bagder closed this as completed in aabe0a7 Feb 12, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants