diff --git a/security/nss/lib/certhigh/ocsp.c b/security/nss/lib/certhigh/ocsp.c index 506bcc03d8af..f387c55e2491 100644 --- a/security/nss/lib/certhigh/ocsp.c +++ b/security/nss/lib/certhigh/ocsp.c @@ -35,7 +35,7 @@ * Implementation of OCSP services, for both client and server. * (XXX, really, mostly just for client right now, but intended to do both.) * - * $Id: ocsp.c,v 1.1 2000/03/31 19:43:00 relyea%netscape.com Exp $ + * $Id: ocsp.c,v 1.2 2001/08/07 18:56:13 ddrinan%netscape.com Exp $ */ #include "prerror.h" @@ -3704,6 +3704,12 @@ CERT_SetOCSPDefaultResponder(CERTCertDBHandle *handle, * used const to convey that it does not modify the name. Maybe someday. */ cert = CERT_FindCertByNickname(handle, (char *) name); + if (cert == NULL) { + /* + * look for the cert on an external token. + */ + cert = PK11_FindCertFromNickname(name, NULL); + } if (cert == NULL) return SECFailure; @@ -3831,6 +3837,10 @@ CERT_EnableOCSPDefaultResponder(CERTCertDBHandle *handle) */ cert = CERT_FindCertByNickname(handle, statusContext->defaultResponderNickname); + if (cert == NULL) { + cert = PK11_FindCertFromNickname(statusContext->defaultResponderNickname, + NULL); + } /* * We should never have trouble finding the cert, because its * existence should have been proven by SetOCSPDefaultResponder.