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: Check if NID_sm2 is defined #2602

Merged
merged 1 commit into from
Apr 20, 2023
Merged

Conversation

orbea
Copy link
Contributor

@orbea orbea commented Apr 15, 2023

The NID_sm2 algorithm is not currently supported by LibreSSL which causes build failures. However instead of checking the OpenSSL version number it is possible to just check if NID_sm2 is defined instead. This way it will be automatically enabled when LibreSSL does support it and disabled in the event the OpenSSL stops supporting it.

LibreSSL issue: libressl/portable#841

I am splitting this off from PR #2380 since it is more general.

The NID_sm2 algorithm is not currently supported by LibreSSL which
causes build failures. However instead of checking the OpenSSL version
number it is possible to just check if NID_sm2 is defined instead. This
way it will be automatically enabled when LibreSSL does support it and
disabled in the event the OpenSSL stops supporting it.

LibreSSL issue: libressl/portable#841

Signed-off-by: orbea <orbea@riseup.net>
@codecov
Copy link

codecov bot commented Apr 15, 2023

Codecov Report

Merging #2602 (30d308f) into master (3d3c9a8) will increase coverage by 0.00%.
The diff coverage is n/a.

❗ Current head 30d308f differs from pull request most recent head 4f00e35. Consider uploading reports for the commit 4f00e35 to get more accurate results

@@           Coverage Diff           @@
##           master    #2602   +/-   ##
=======================================
  Coverage   83.60%   83.61%           
=======================================
  Files         363      363           
  Lines       41686    41686           
=======================================
+ Hits        34851    34855    +4     
+ Misses       6835     6831    -4     
Impacted Files Coverage Δ
src/tss2-esys/esys_crypto_ossl.c 76.00% <ø> (ø)
src/tss2-fapi/fapi_crypto.c 79.34% <ø> (ø)

... and 4 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@JuergenReppSIT JuergenReppSIT self-requested a review April 20, 2023 06:38
@JuergenReppSIT JuergenReppSIT merged commit 569bf25 into tpm2-software:master Apr 20, 2023
@orbea orbea deleted the sm2 branch April 20, 2023 13:40
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.

2 participants