Skip to content

Commit

Permalink
* make sure the token cache returns failure in overflow case
Browse files Browse the repository at this point in the history
* change internal module trust order again, builtins uses 100, and internal module must come first
  • Loading branch information
ian.mcgreer%sun.com committed Apr 19, 2002
1 parent 2f2925f commit 12ffa89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions security/nss/lib/dev/devutil.c
Expand Up @@ -677,6 +677,7 @@ get_object_and_attributes
*/
*doObjects = PR_FALSE;
*status = PR_FAILURE;
return (nssCryptokiObjectAndAttributes **)NULL;
} else {
if (numObjects == 0) {
/* The fact that there are no objects is cached, done */
Expand Down Expand Up @@ -851,7 +852,7 @@ get_token_certs_for_cache
return status;
}
cache->searchedObjectType[cachedCerts] = PR_TRUE;
return PR_SUCCESS;
return status;
}

static PRStatus
Expand Down Expand Up @@ -905,7 +906,7 @@ get_token_trust_for_cache
return status;
}
cache->searchedObjectType[cachedTrust] = PR_TRUE;
return PR_SUCCESS;
return status;
}

static PRStatus
Expand Down Expand Up @@ -955,7 +956,7 @@ get_token_crls_for_cache
return status;
}
cache->searchedObjectType[cachedCRLs] = PR_TRUE;
return PR_SUCCESS;
return status;
}

static nssCryptokiObject **
Expand Down
2 changes: 1 addition & 1 deletion security/nss/lib/softoken/pk11db.c
Expand Up @@ -723,7 +723,7 @@ secmod_addEscape(const char *string, char quote)
}

#define SECMOD_STEP 10
#define PK11_DEFAULT_INTERNAL_INIT "library= name=\"NSS Internal PKCS #11 Module\" parameters=\"%s\" NSS=\"Flags=internal,critical trustOrder=100 cipherOrder=100 slotParams=(1={%s askpw=any timeout=30})\""
#define PK11_DEFAULT_INTERNAL_INIT "library= name=\"NSS Internal PKCS #11 Module\" parameters=\"%s\" NSS=\"Flags=internal,critical trustOrder=75 cipherOrder=100 slotParams=(1={%s askpw=any timeout=30})\""
/*
* Read all the existing modules in
*/
Expand Down

0 comments on commit 12ffa89

Please sign in to comment.