Fix conditional error resetting has_pw1 variable #17

Merged
imkuang merged 1 commits from fix_pw1-life-status into main 2024-07-15 21:12:26 +08:00

1 Commits

Author SHA1 Message Date
Ming Kuang
886bee5ddc Fix conditional error resetting has_pw1 variable
According to OpenPGP 3.4.1 specifications subsection 4.4.1:
PW status Bytes
1st byte: 00 = PW1 (no. 81) only valid for one PSO:CDS command
          01 = PW1 valid for several PSO:CDS commands

Therefore has_pw1 should be reset to false when the first byte
of the PW status is 0 instead of 1.
2024-07-06 22:09:37 +08:00