Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
From edf8aafda42fbcf30ed3c13d4b404d2d5c821238 Mon Sep 17 00:00:00 2001
Bug 1162897, Detect PKCS#11 URI in PK11_FindCert{s,}FromNickname and search accordingly, r=rrelyea
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Aug 18, 2016
1 parent 9dc954a commit c029c23
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/pk11wrap/pk11cert.c
Expand Up @@ -741,6 +741,11 @@ find_certs_from_nickname(const char *nickname, void *wincx)
char *delimit = NULL;
char *tokenName;

if (!strncmp(nickname, "pkcs11:", strlen("pkcs11:"))) {
certs = find_certs_from_uri(nickname, wincx);
if (certs)
return certs;
}
nickCopy = PORT_Strdup(nickname);
if (!nickCopy) {
/* error code is set */
Expand Down

0 comments on commit c029c23

Please sign in to comment.