sc-hsm: Fix #698

This commit is contained in:
Andreas Schwier 2016-03-02 14:20:30 +01:00
parent bc812aa132
commit 69eaa66e83
1 changed files with 3 additions and 0 deletions

View File

@ -485,6 +485,9 @@ static int sc_hsm_emu_update_prkd(struct sc_profile *profile, struct sc_pkcs15_c
size_t buflen;
int r;
// Don't save AID in PRKD
key_info->path.aid.len = 0;
r = sc_pkcs15_encode_prkdf_entry(p15card->card->ctx, object, &buf, &buflen);
LOG_TEST_RET(p15card->card->ctx, r, "Error encoding PRKD entry");