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
imkuang commented 2024-07-06 22:59:07 +08:00 (Migrated from github.com)

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.
This resulted in issue #16

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. This resulted in issue #16
imkuang commented 2024-07-06 23:41:10 +08:00 (Migrated from github.com)

Not sure why the CI failed, but it doesn't seem too relevant to my commit?

Not sure why the CI failed, but it doesn't seem too relevant to my commit?
Sign in to join this conversation.