Skip to content

Commit

Permalink
Bug 1579036 - Define error when trying to export non-existent cert wi…
Browse files Browse the repository at this point in the history
…th pk12util. r=jcj

Differential Revision: https://phabricator.services.mozilla.com/D45452

--HG--
extra : moz-landing-system : lando
  • Loading branch information
Marcus Burghardt committed Sep 10, 2019
1 parent 1d2fd6c commit 634e005
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/pk12util/pk12util.c
Expand Up @@ -644,6 +644,7 @@ P12U_ExportPKCS12Object(char *nn, char *outfile, PK11SlotInfo *inSlot,
}
certlist = PK11_FindCertsFromNickname(nn, slotPw);
if (!certlist) {
PORT_SetError(SEC_ERROR_UNKNOWN_CERT);
SECU_PrintError(progName, "find user certs from nickname failed");
pk12uErrno = PK12UERR_FINDCERTBYNN;
return;
Expand Down

0 comments on commit 634e005

Please sign in to comment.