mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 08:27:31 +09:00
imported changes from mozilla NSS:
- Bug 1759794 - protect SFTKSlot needLogin with slotLock. r=rrelyea (1bbd8d8c) - Bug 1771497 - Uninitialized value in cert_VerifyCertChainOld. r=nss-reviewers,djackson (23be110c) - Bug 1771495 - unchecked return code in sec_DecodeSigAlg. r=nss-reviewers,djackson (d4fb4b83) - Bug 1771498 - Uninitialized value in cert_ComputeCertType. r=djackson (b28bc4cd) - Bug 1764392 - Add DigitCert Roots r=nss-reviewers,jschanck (0863d9ec) - Bug 1768970 - Add Certainly Roots. r=nss-reviewers,jschanck (6307e75b) - Bug 1770267 - Add E-Tugra Roots. r=nss-reviewers,jschanck (9555008f) - Bug 1759815 - Remove Hellenic Academic 2011 Root. r=nss-reviewers,jschanck (9c2cbf14) - Bug 1764206 - Bump nssckbi version number for June. r=nss-reviewers,jschanck (b3acf3d9)
This commit is contained in:
parent
082405259b
commit
43cfc69b25
10 changed files with 1209 additions and 186 deletions
|
|
@ -384,9 +384,9 @@ GetKeyUsage(CERTCertificate *cert)
|
|||
rv = CERT_FindKeyUsageExtension(cert, &tmpitem);
|
||||
if (rv == SECSuccess) {
|
||||
/* remember the actual value of the extension */
|
||||
cert->rawKeyUsage = tmpitem.data[0];
|
||||
cert->rawKeyUsage = tmpitem.len ? tmpitem.data[0] : 0;
|
||||
cert->keyUsagePresent = PR_TRUE;
|
||||
cert->keyUsage = tmpitem.data[0];
|
||||
cert->keyUsage = cert->rawKeyUsage;
|
||||
|
||||
PORT_Free(tmpitem.data);
|
||||
tmpitem.data = NULL;
|
||||
|
|
@ -506,7 +506,7 @@ cert_ComputeCertType(CERTCertificate *cert)
|
|||
isCA = basicConstraint.isCA;
|
||||
}
|
||||
if (tmpitem.data != NULL || extKeyUsage != NULL) {
|
||||
if (tmpitem.data == NULL) {
|
||||
if (tmpitem.data == NULL || tmpitem.len == 0) {
|
||||
nsCertType = 0;
|
||||
} else {
|
||||
nsCertType = tmpitem.data[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue