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

src/BearSSLClient.cpp: fix _ecSign #36

Merged

Conversation

ffontaine
Copy link
Contributor

@ffontaine ffontaine commented Oct 15, 2020

The client can specify its own _ecSign function since commit 996778e as well as its own certificate since commit 874c6b0.
The goal was to allow the user to use ArduinoBearSSL without the ECCX08 (for example with an (e)SIM applet compliant to the new GSMA IoT SAFE standard).

However, these two functions don't work because br_ssl_client_set_single_ec is not called if _ecKey.xlen is set to 0 so fix this latest issue

Signed-off-by: Fabrice Fontaine fabrice.fontaine@orange.com

The client can specify its own _ecSign function since commit
996778e as well as its own certificate
since commit 874c6b0
The goal was to allow the user to use ArduinoBearSSL without the ECCX08
(for example with an (e)SIM applet compliant to the new GSMA IoT SAFE
standard).

However, these two functions don't work because
br_ssl_client_set_single_ec is not called if _ecKey.xlen is set to 0 so
fix this latest issue

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
@luigigubello
Copy link
Contributor

Hi @ffontaine, thank you for your contribution! The PR is ok for me, but seeing @aentinger's comment in the PR #36 I would like to be sure this change cannot create any conflict in ArduinoIoTCloud library. @aentinger, can you confirm this?

@luigigubello luigigubello merged commit 0d87fd1 into arduino-libraries:master Oct 22, 2020
@luigigubello
Copy link
Contributor

Hi @ffontaine, thank you for your contribution, I have merged the commit :)

@ffontaine ffontaine deleted the fix-_ecSign branch October 22, 2020 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants