Merge pull request #701 from CardContact/fix698
sc-hsm: Remove path for newly generated key pairs
This commit is contained in:
commit
34a69aeac8
|
@ -485,6 +485,9 @@ static int sc_hsm_emu_update_prkd(struct sc_profile *profile, struct sc_pkcs15_c
|
||||||
size_t buflen;
|
size_t buflen;
|
||||||
int r;
|
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);
|
r = sc_pkcs15_encode_prkdf_entry(p15card->card->ctx, object, &buf, &buflen);
|
||||||
LOG_TEST_RET(p15card->card->ctx, r, "Error encoding PRKD entry");
|
LOG_TEST_RET(p15card->card->ctx, r, "Error encoding PRKD entry");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue