-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Build library failed for server mode only: missing-prototypes for mbedtls_ssl_conf_has_static_psk #9186
Labels
Comments
I can confirm the issue (and the proposed solution :). Ran into it just a few days ago and created a local (working) patch. My PR will follow today. |
misch7
added a commit
to misch7/mbedtls
that referenced
this issue
May 27, 2024
…bed-TLS#9186) Signed-off-by: Michael Schuster <[email protected]>
5 tasks
gilles-peskine-arm
added
bug
component-tls
size-xs
Estimated task size: extra small (a few hours at most)
labels
May 27, 2024
misch7
added a commit
to misch7/mbedtls
that referenced
this issue
Jun 5, 2024
…bed-TLS#9186) Signed-off-by: Michael Schuster <[email protected]>
misch7
added a commit
to misch7/mbedtls
that referenced
this issue
Jun 11, 2024
…Mbed-TLS#9186) Signed-off-by: Michael Schuster <[email protected]>
misch7
added a commit
to misch7/mbedtls
that referenced
this issue
Jul 18, 2024
…Mbed-TLS#9186) Signed-off-by: Michael Schuster <[email protected]>
misch7
added a commit
to misch7/mbedtls
that referenced
this issue
Jul 24, 2024
…Mbed-TLS#9186) Signed-off-by: Michael Schuster <[email protected]>
minosgalanakis
pushed a commit
to minosgalanakis/mbedtls
that referenced
this issue
Aug 6, 2024
…Mbed-TLS#9186) Signed-off-by: Michael Schuster <[email protected]>
5 tasks
minosgalanakis
pushed a commit
to misch7/mbedtls
that referenced
this issue
Aug 9, 2024
…Mbed-TLS#9186) Signed-off-by: Michael Schuster <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Summary
I stumbled on this bug using mbedtls with the ESP-IDF Framework. But I was unsure if this is a general bug of mbedtls, so I cloned the original code and could reproduce the build fail with the most recent v3.6.0 and develop
System information
Mbed TLS version (number or commit id): v3.6.0 and develop
Operating system and version: Manjaro 24.0
Configuration (if not default, please attach
mbedtls_config.h
): UndefineMBEDTLS_SSL_CLI_C
Compiler and options (if you used a pre-built binary, please indicate how you obtained it): GCC 13
Additional environment information: -
Expected behavior
I should be able to build the mbedtls library without client mode. After all it looks like
MBEDTLS_SSL_CLI_C
is a selectable option in mbedtls_config.h. More technical insight in "Additional information".Actual behavior
Build fails with:
More technical insight in "Additional information".
Steps to reproduce
From an unmodified clone: Undefine
MBEDTLS_SSL_CLI_C
(e.g. comment it out) and try to build the library using CMake.Additional information
I think I figured the problem out already:
MBEDTLS_KEY_EXCHANGE_SOME_PSK_ENABLED
situation ssl_tls.c defines and uses the functionmbedtls_ssl_conf_has_static_psk
.MBEDTLS_SSL_CLI_C
needs to be removed from the header or added in the source. But I am not enough of an mbedtls expert to create a PR right away.The text was updated successfully, but these errors were encountered: