-
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
mbedtls_pk_write_pubkey_der expects a mbedtls_pk_context that is non-const #396
Comments
ARM Internal Ref: IOTSSL-601 |
Bump. I just got bitten by this, and newer versions of Clang (3.8+) will warn even if you have an explicit cast, as it should.
Adding |
FYI we worked around this in libcurl by making the copy. |
#1194 addresses this issue Unfortunately, since this is an API breaking change, it will probably take time to merge it |
The structure |
…5698 Merge of development PRs from v3.1.0 to 5698
This bug comes from Ray Satiro from the libcurl malilinglist:
[3], but mbedtls_ssl_get_peer_cert returns a const certificate. I don't see a
way to make a non-const copy of the public key but there is probably a way to
do this, or copy the cert or some parent container.
Answer from Manuel:
References:
https://tls.mbed.org/discussions/generic/resumed-tls-handshake
http://article.gmane.org/gmane.comp.web.curl.library/46767
The text was updated successfully, but these errors were encountered: