mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
Replace NSS with Pale Moon's
This commit is contained in:
parent
ff1e5e48bf
commit
8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions
|
|
@ -246,7 +246,7 @@ find_objects(
|
|||
nssSession *session = (sessionOpt) ? sessionOpt : tok->defaultSession;
|
||||
|
||||
/* Don't ask the module to use an invalid session handle. */
|
||||
if (!session || session->handle == CK_INVALID_SESSION) {
|
||||
if (!session || session->handle == CK_INVALID_HANDLE) {
|
||||
ckrv = CKR_SESSION_HANDLE_INVALID;
|
||||
goto loser;
|
||||
}
|
||||
|
|
@ -1112,7 +1112,7 @@ nssToken_FindTrustForCertificate(
|
|||
nssCryptokiObject *object = NULL, **objects;
|
||||
|
||||
/* Don't ask the module to use an invalid session handle. */
|
||||
if (!session || session->handle == CK_INVALID_SESSION) {
|
||||
if (!session || session->handle == CK_INVALID_HANDLE) {
|
||||
PORT_SetError(SEC_ERROR_NO_TOKEN);
|
||||
return object;
|
||||
}
|
||||
|
|
@ -1194,7 +1194,7 @@ nssToken_FindCRLsBySubject(
|
|||
nssSession *session = sessionOpt ? sessionOpt : token->defaultSession;
|
||||
|
||||
/* Don't ask the module to use an invalid session handle. */
|
||||
if (!session || session->handle == CK_INVALID_SESSION) {
|
||||
if (!session || session->handle == CK_INVALID_HANDLE) {
|
||||
PORT_SetError(SEC_ERROR_NO_TOKEN);
|
||||
return objects;
|
||||
}
|
||||
|
|
@ -1250,7 +1250,7 @@ nssToken_Digest(
|
|||
nssSession *session = (sessionOpt) ? sessionOpt : tok->defaultSession;
|
||||
|
||||
/* Don't ask the module to use an invalid session handle. */
|
||||
if (!session || session->handle == CK_INVALID_SESSION) {
|
||||
if (!session || session->handle == CK_INVALID_HANDLE) {
|
||||
PORT_SetError(SEC_ERROR_NO_TOKEN);
|
||||
return rvItem;
|
||||
}
|
||||
|
|
@ -1316,7 +1316,7 @@ nssToken_BeginDigest(
|
|||
nssSession *session = (sessionOpt) ? sessionOpt : tok->defaultSession;
|
||||
|
||||
/* Don't ask the module to use an invalid session handle. */
|
||||
if (!session || session->handle == CK_INVALID_SESSION) {
|
||||
if (!session || session->handle == CK_INVALID_HANDLE) {
|
||||
PORT_SetError(SEC_ERROR_NO_TOKEN);
|
||||
return PR_FAILURE;
|
||||
}
|
||||
|
|
@ -1338,7 +1338,7 @@ nssToken_ContinueDigest(
|
|||
nssSession *session = (sessionOpt) ? sessionOpt : tok->defaultSession;
|
||||
|
||||
/* Don't ask the module to use an invalid session handle. */
|
||||
if (!session || session->handle == CK_INVALID_SESSION) {
|
||||
if (!session || session->handle == CK_INVALID_HANDLE) {
|
||||
PORT_SetError(SEC_ERROR_NO_TOKEN);
|
||||
return PR_FAILURE;
|
||||
}
|
||||
|
|
@ -1366,7 +1366,7 @@ nssToken_FinishDigest(
|
|||
nssSession *session = (sessionOpt) ? sessionOpt : tok->defaultSession;
|
||||
|
||||
/* Don't ask the module to use an invalid session handle. */
|
||||
if (!session || session->handle == CK_INVALID_SESSION) {
|
||||
if (!session || session->handle == CK_INVALID_HANDLE) {
|
||||
PORT_SetError(SEC_ERROR_NO_TOKEN);
|
||||
return NULL;
|
||||
}
|
||||
|
|
@ -1445,7 +1445,7 @@ nssToken_TraverseCertificates(
|
|||
nssSession *session = (sessionOpt) ? sessionOpt : token->defaultSession;
|
||||
|
||||
/* Don't ask the module to use an invalid session handle. */
|
||||
if (!session || session->handle == CK_INVALID_SESSION) {
|
||||
if (!session || session->handle == CK_INVALID_HANDLE) {
|
||||
PORT_SetError(SEC_ERROR_NO_TOKEN);
|
||||
return PR_FAILURE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue