Skip to content

Commit

Permalink
using again T0|T1 protocol by default, fix parsing quoted arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
kaoh committed Sep 17, 2020
1 parent efc29a5 commit 1c73faf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gpshell/src/gpshell.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,6 @@ static TCHAR *strtokCheckComment(TCHAR *buf)
}
dummy[BUFLEN-1] = _T('\0');

/* Skip next delimiter */
token = _tcstok(buf, DELIMITER);

token = dummy;
return token;
}
Expand Down Expand Up @@ -532,7 +529,7 @@ static int handleOptions(OptionStr *pOptionStr)
pOptionStr->readerNumber = AUTOREADER;
pOptionStr->file[0] = _T('\0');
pOptionStr->passPhrase[0] = _T('\0');
pOptionStr->protocol = OPGP_CARD_PROTOCOL_T0;
pOptionStr->protocol = OPGP_CARD_PROTOCOL_T0 | OPGP_CARD_PROTOCOL_T1;
pOptionStr->nvCodeLimit = 0;
pOptionStr->nvDataLimit = 0;
pOptionStr->vDataLimit = 0;
Expand Down

0 comments on commit 1c73faf

Please sign in to comment.