tpm2-software / tpm2-pkcs11

A PKCS#11 interface for TPM2 hardware
https://tpm2-software.github.io
Other
278 stars 104 forks source link

Skip null attribute during DB update #849

Closed tracefinder closed 2 months ago

tracefinder commented 1 year ago

This PR is based on a patch from https://github.com/tpm2-software/tpm2-pkcs11/issues/845 and fixes the issue when there is no CKA_ALLOWED_MECHANISMS attribute during DB migration

codecov[bot] commented 1 year ago

Codecov Report

Merging #849 (9873237) into master (1b3aab9) will decrease coverage by 0.01%. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #849      +/-   ##
==========================================
- Coverage   72.43%   72.42%   -0.01%     
==========================================
  Files          34       34              
  Lines        9773     9774       +1     
==========================================
  Hits         7079     7079              
- Misses       2694     2695       +1     
Files Coverage Δ
src/lib/db.c 67.41% <0.00%> (-0.06%) :arrow_down:

:mega: Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

tracefinder commented 1 year ago

I guess opensuse-leap has the same issue as in https://github.com/tpm2-software/tpm2-pkcs11/pull/808#issuecomment-1398563650

tracefinder commented 1 year ago

@williamcroberts sorry for bothering you. Could you take a look at this PR? It's not big.

idlesign commented 6 months ago

Link to #858

williamcroberts commented 2 months ago

Duplicate of #858