-
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
Configuration detection can fail in ssl-opt.sh #2030
Labels
Comments
I think adding an example program printing numerous configuration values, as @gilles-peskine-arm suggested, should be straightforward and very helpful for testing. |
Isn't this just a duplicate of #2029? Am I missing something? |
ARM Internal Ref: IOTSSL-2555 |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Depending on the configuration,
ssl-opt.sh
may skip some tests that it should run or run some tests that will fail. There are in fact errors if you runtest-ref-configs.pl
, which turn out to be benign in this case.Here's an excerpt from
test-ref-configs.pl
:The problem turns out to be the detection of the value of
MBEDTLS_SSL_DTLS_MAX_BUFFERING
. Ifinclude/mbedtls/config.h
does not contain a line with#define MBEDTLS_SSL_DTLS_MAX_BUFFERING …
or//#define MBEDTLS_SSL_DTLS_MAX_BUFFERING …
, which happens to be the case forconfigs/config-thread.h
, then the functionget_config_value_or_default
produces empty output and this leads to the error messages above fromrequires_config_value_at_least
andrequires_config_value_at_most
.It is legitimate for
config.h
not to defineMBEDTLS_SSL_DTLS_MAX_BUFFERING
, sincessl.h
will supply a fallback value. I think the whole mechanism to detect the value ofMBEDTLS_SSL_DTLS_MAX_BUFFERING
should be changed. We could make a program inprograms/tests
orprograms/util
that just prints out the value: this would be a lot more robust than parsing header files in sh.The text was updated successfully, but these errors were encountered: