Fix conditional error resetting has_pw1 variable #17

Merged
dearsky merged 0 commits from refs/pull/17/head into main 2024-07-15 21:12:26 +08:00
dearsky commented 2024-07-06 22:59:07 +08:00 (Migrated from gitea.proxy.dearsky.top)

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
dearsky commented 2024-07-06 23:41:10 +08:00 (Migrated from gitea.proxy.dearsky.top)

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.