Fixed compile errors

This commit is contained in:
skarg
2016-09-08 15:51:11 +00:00
parent 456c0ed42c
commit 27a3c1ff0f
4 changed files with 76 additions and 57 deletions
@@ -40,7 +40,7 @@ int bacapp_encode_authentication_factor_format(
else
apdu_len += len;
if (aff->format_type == AUTHENTICATION_FACTOR_TYPE_CUSTOM) {
if (aff->format_type == AUTHENTICATION_FACTOR_CUSTOM) {
len = encode_context_unsigned(&apdu[apdu_len], 1, aff->vendor_id);
if (len < 0)
return -1;
@@ -101,7 +101,7 @@ int bacapp_decode_authentication_factor_format(
return -1;
else
apdu_len += len;
if ((aff->format_type != AUTHENTICATION_FACTOR_TYPE_CUSTOM)
if ((aff->format_type != AUTHENTICATION_FACTOR_CUSTOM)
&& (aff->vendor_id != 0))
return -1;
}
@@ -112,7 +112,7 @@ int bacapp_decode_authentication_factor_format(
return -1;
else
apdu_len += len;
if ((aff->format_type != AUTHENTICATION_FACTOR_TYPE_CUSTOM)
if ((aff->format_type != AUTHENTICATION_FACTOR_CUSTOM)
&& (aff->vendor_format != 0))
return -1;
}