Skip to content

Commit

Permalink
Fix PK11Store.findCertFromDERCertItem()
Browse files Browse the repository at this point in the history
The PK11Store.findCertFromDERCertItem() has been updated to
use the proper function to wrap the cert.
  • Loading branch information
edewata committed Aug 2, 2024
1 parent 6295c6e commit d674171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/src/main/native/org/mozilla/jss/pkcs11/PK11Store.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ Java_org_mozilla_jss_pkcs11_PK11Store_findCertFromDERCertItem(
goto finish;
}

cert = JSS_PK11_wrapCertAndSlot(env, &nssCert, &slot);
cert = JSS_PK11_wrapCert(env, &nssCert);

finish:
if (nssCert != NULL) {
Expand Down

0 comments on commit d674171

Please sign in to comment.