Skip to content

Commit

Permalink
Changed expected response length to -1 in TagReader:selectPassportApp…
Browse files Browse the repository at this point in the history
…lication.

Should have been part of @TimoTegtmeier's PR (#153) but missed!
Thanks to @Thormeard for spotting this
  • Loading branch information
AndyQ committed Feb 3, 2023
1 parent 0da9b54 commit 84b4c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/NFCPassportReader/TagReader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public class TagReader {
func selectPassportApplication() async throws -> ResponseAPDU {
// Finally reselect the eMRTD application so the rest of the reading works as normal
Log.debug( "Re-selecting eMRTD Application" )
let cmd : NFCISO7816APDU = NFCISO7816APDU(instructionClass: 0x00, instructionCode: 0xA4, p1Parameter: 0x04, p2Parameter: 0x0C, data: Data([0xA0, 0x00, 0x00, 0x02, 0x47, 0x10, 0x01]), expectedResponseLength: 256)
let cmd : NFCISO7816APDU = NFCISO7816APDU(instructionClass: 0x00, instructionCode: 0xA4, p1Parameter: 0x04, p2Parameter: 0x0C, data: Data([0xA0, 0x00, 0x00, 0x02, 0x47, 0x10, 0x01]), expectedResponseLength: -1)

let response = try await self.send( cmd: cmd)
return response
Expand Down

0 comments on commit 84b4c82

Please sign in to comment.