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

Comments

Projects
None yet
2 participants
@MAntoniak
Copy link

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 added a commit that referenced this issue Feb 11, 2019

mbedtls: make it build even if MBEDTLS_VERSION_C isn't set
Reported-by: MAntoniak on github
Fixes #3553
@bagder

This comment has been minimized.

Copy link
Member

commented Feb 11, 2019

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

@MAntoniak

This comment has been minimized.

Copy link
Author

commented Feb 12, 2019

Yes, it works. Thanks!

@bagder bagder closed this 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.
You can’t perform that action at this time.