add implicit capabilities of non-initialized devices

This commit is contained in:
Michele Balistreri 2019-02-26 14:23:48 +03:00
parent 07cba4aa9d
commit f9df2be80f
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@ public class ApplicationInfo {
if (topTag == TLV_PUB_KEY) {
secureChannelPubKey = tlv.readPrimitive(TLV_PUB_KEY);
initializedCard = false;
capabilities = CAPABILITY_CREDENTIALS_MANAGEMENT;
if (secureChannelPubKey.length > 0) {
capabilities |= CAPABILITY_SECURE_CHANNEL;
}
return;
}