Merge pull request #701 from CardContact/fix698

sc-hsm: Remove path for newly generated key pairs
This commit is contained in:
Frank Morgner 2016-03-04 17:23:00 +01:00
commit 34a69aeac8
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");