-
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
SSL_ part in macro names #9858
Comments
It might seem redundant, but it serves a purpose. (In 4.0 there will only be libmbedtls and libmbedx509, but that is still two libraries and it justifies a prefix for each.) |
Interesting. |
Trying to minimize things, |
We normally try to minimize the thought that the reader has to put in understanding the code. I agree, that length can be at odds with that goal, but I don't feel that we are there yet in this case.
4.0 won't have it's own |
Macro |
That is indeed very long. A mitigating factor is that our new coding standard allows 100 characters, but still, I see your point. |
Does it make sense to keep
SSL_
part in macro names if there is alreadyMBEDTLS_
prefix?mbedtls/include/mbedtls/mbedtls_config.h
Line 312 in 08909c9
This TLS 1.3 feature was not expected to be a part of SSL.
mbedtls/include/mbedtls/mbedtls_config.h
Line 576 in 08909c9
A few names could be made shorter by avoiding tautological repetitions, and now it is a rare time for such changes - next major version release might be quite far away.
The text was updated successfully, but these errors were encountered: