зеркало из https://github.com/mozilla/gecko-dev.git
Bugzilla Bug 342476: NSS should set and check the pReserved field in the
(extended) CK_C_INITIALIZE_ARGS structure. r=nelsonb,relyea. Modified files: pk11wrap/pk11load.c softoken/pkcs11.c
This commit is contained in:
Родитель
1e38e73d73
Коммит
894326bb94
|
@ -145,6 +145,7 @@ secmod_ModuleInit(SECMODModule *mod, PRBool* alreadyLoaded)
|
|||
} else {
|
||||
moduleArgs = secmodLockFunctions;
|
||||
moduleArgs.LibraryParameters = (void *) mod->libraryParams;
|
||||
moduleArgs.pReserved = NULL;
|
||||
pInitArgs = &moduleArgs;
|
||||
}
|
||||
crv = PK11_GETTAB(mod)->C_Initialize(pInitArgs);
|
||||
|
|
|
@ -3037,7 +3037,7 @@ CK_RV nsc_CommonInitialize(CK_VOID_PTR pReserved, PRBool isFIPS)
|
|||
}
|
||||
}
|
||||
crv = CKR_ARGUMENTS_BAD;
|
||||
if ((init_args && init_args->LibraryParameters)) {
|
||||
if ((init_args && init_args->LibraryParameters && !init_args->pReserved)) {
|
||||
sftk_parameters paramStrings;
|
||||
|
||||
crv = secmod_parseParameters
|
||||
|
|
Загрузка…
Ссылка в новой задаче