Skip to content

Commit

Permalink
fix(protocol): fix a SGX bug in pemCertChainLib (#16639)
Browse files Browse the repository at this point in the history
Co-authored-by: smtmfft <[email protected]>
  • Loading branch information
dantaik and smtmfft authored Apr 4, 2024
1 parent 511c18d commit 83db3da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ contract PEMCertChainLib is IPEMCertChainLib {
bytes1 notBeforeTag = der[notBeforePtr.ixs()];
bytes1 notAfterTag = der[notAfterPtr.ixs()];
if (
(notBeforeTag != 0x17 && notBeforeTag == 0x18)
(notBeforeTag != 0x17 && notBeforeTag != 0x18)
|| (notAfterTag != 0x17 && notAfterTag != 0x18)
) {
return (false, cert);
Expand Down

0 comments on commit 83db3da

Please sign in to comment.