{
size_t left = size;
char *p = buf;
- while (*p && *p == ' ')
+ while (*p && (*p == ' ' || *p == '\t'))
p++;
while (left > 0) {
return -(p - buf);
}
- while (*p && *p == ' ')
+ while (*p && (*p == ' ' || *p == '\t'))
p++;
p--;
*ymv = 0;
- while (*p && *p == ' ')
+ while (*p && (*p == ' ' || *p == '\t'))
p++;
for (i = 0; i < 3; i++) {
temp[i] = (c1 * 16 + c2);
}
- while (*p && *p == ' ')
+ while (*p && (*p == ' ' || *p == '\t'))
p++;
p--;
static ssize_t emv_pk_read_string(char *buf, char *str, size_t size)
{
char *p = buf;
- while (*p && *p == ' ')
+ while (*p && (*p == ' ' || *p == '\t'))
p++;
while (size > 1) {
- if (*p == ' ')
+ if (*p == ' ' || *p == '\t')
break;
else if (*p < 0x20 || *p >= 0x7f)
return -(p - buf);
*str = 0;
- while (*p && *p == ' ')
+ while (*p && (*p == ' ' || *p == '\t'))
p++;
p--;
if (!pk)
return NULL;
- printf("Verifying CA PK for %02hhx:%02hhx:%02hhx:%02hhx:%02hhx IDX %02hhx %zd bits...",
+ printf("Verifying CA Public Key for %02hhx:%02hhx:%02hhx:%02hhx:%02hhx IDX %02hhx %zd bits...",
pk->rid[0],
pk->rid[1],
pk->rid[2],