AndyQ / NFCPassportReader

NFCPassportReader for iOS 13
MIT License
733 stars 235 forks source link

LDIF format seems changed in new version #177

Closed renevdkooi closed 10 months ago

renevdkooi commented 1 year ago

In the script it is looking for "CscaMasterListData", but the new file seems to use "pkdMasterListContent" Maybe add a || line.startswith( "pkdMasterListContent:: "): to the line

Suggestion:

if line.startswith( "cn: "): cn = line[4:] elif line.startswith( "pkdMasterListContent:: "): cert = line[23:] adding = True elif line.startswith( "CscaMasterListData:: "): cert = line[21:] adding = True elif not line.startswith(" ") and adding == True: adding = False certs.append( cert ) cns.append( cn ) cert = "" elif adding == True: cert += line

AndyQ commented 11 months ago

Will look at fixing this for next release

AndyQ commented 10 months ago

This has been fixed in 2.1.0