mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
[NSS] sync with https://github.com/roytam1/NSS/tree/NSS_3_48_UXP_BRANCH, notably:
- Bug 1665715 - (1/2) revert e8f2720c8254 (bug 1593141) because it's no longer necessary r=jcj (a9bca998) - Bug 1665715 - (2/2) pass encoded signed certificate timestamp extension (if present) in CheckRevocation r=jcj (429f9ef9)
This commit is contained in:
parent
96524cc3c5
commit
4e45ee69e0
22 changed files with 130 additions and 272 deletions
|
|
@ -56,7 +56,7 @@ nssCryptokiObject_Destroy(
|
|||
nssCryptokiObject *object)
|
||||
{
|
||||
if (object) {
|
||||
(void)nssToken_Destroy(object->token);
|
||||
nssToken_Destroy(object->token);
|
||||
nss_ZFreeIf(object->label);
|
||||
nss_ZFreeIf(object);
|
||||
}
|
||||
|
|
@ -150,12 +150,19 @@ nssTokenArray_Destroy(
|
|||
if (tokens) {
|
||||
NSSToken **tokenp;
|
||||
for (tokenp = tokens; *tokenp; tokenp++) {
|
||||
(void)nssToken_Destroy(*tokenp);
|
||||
nssToken_Destroy(*tokenp);
|
||||
}
|
||||
nss_ZFreeIf(tokens);
|
||||
}
|
||||
}
|
||||
|
||||
NSS_IMPLEMENT void
|
||||
NSSTokenArray_Destroy(
|
||||
NSSToken **tokens)
|
||||
{
|
||||
nssTokenArray_Destroy(tokens);
|
||||
}
|
||||
|
||||
NSS_IMPLEMENT void
|
||||
nssCryptokiObjectArray_Destroy(
|
||||
nssCryptokiObject **objects)
|
||||
|
|
@ -358,7 +365,7 @@ create_object(
|
|||
/* The cache is tied to the token, and therefore the objects
|
||||
* in it should not hold references to the token.
|
||||
*/
|
||||
(void)nssToken_Destroy(object->token);
|
||||
nssToken_Destroy(object->token);
|
||||
rvCachedObject->object = object;
|
||||
rvCachedObject->attributes = nss_ZNEWARRAY(arena, CK_ATTRIBUTE, numTypes);
|
||||
if (!rvCachedObject->attributes) {
|
||||
|
|
@ -561,7 +568,7 @@ get_token_objects_for_cache(
|
|||
&numObjects,
|
||||
&status);
|
||||
if (status != PR_SUCCESS) {
|
||||
nssCryptokiObjectArray_Destroy(objects);
|
||||
nss_ZFreeIf(objects);
|
||||
return status;
|
||||
}
|
||||
for (i = 0; i < numObjects; i++) {
|
||||
|
|
@ -577,8 +584,7 @@ get_token_objects_for_cache(
|
|||
} else {
|
||||
PRUint32 j;
|
||||
for (j = 0; j < i; j++) {
|
||||
/* Any token references that were removed in successful loop iterations
|
||||
* need to be restored before we call nssCryptokiObjectArray_Destroy */
|
||||
/* sigh */
|
||||
nssToken_AddRef(cache->objects[objectType][j]->object->token);
|
||||
nssArena_Destroy(cache->objects[objectType][j]->arena);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue