forked from mirrors/gecko-dev
Bug 1769627 - switch to SECMOD_LockedModuleHasRemovableSlots. r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D147095
This commit is contained in:
parent
86ec9c28f7
commit
9fee1bf9c5
2 changed files with 3 additions and 3 deletions
|
|
@ -857,7 +857,7 @@ nsNSSComponent::HasActiveSmartCards(bool* result) {
|
|||
SECMODModuleList* list = SECMOD_GetDefaultModuleList();
|
||||
while (list) {
|
||||
SECMODModule* module = list->module;
|
||||
if (SECMOD_HasRemovableSlots(module)) {
|
||||
if (SECMOD_LockedModuleHasRemovableSlots(module)) {
|
||||
*result = true;
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
@ -921,7 +921,7 @@ nsresult nsNSSComponent::CheckForSmartCardChanges() {
|
|||
AutoSECMODListReadLock secmodLock;
|
||||
SECMODModuleList* list = SECMOD_GetDefaultModuleList();
|
||||
while (list) {
|
||||
if (SECMOD_HasRemovableSlots(list->module)) {
|
||||
if (SECMOD_LockedModuleHasRemovableSlots(list->module)) {
|
||||
UniqueSECMODModule module(SECMOD_ReferenceModule(list->module));
|
||||
if (!modulesWithRemovableSlots.append(std::move(module))) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
|
|
|||
|
|
@ -570,10 +570,10 @@ SECMOD_GetDefaultModuleListLock
|
|||
SECMOD_GetInternalModule
|
||||
SECMOD_GetModuleSpecList
|
||||
SECMOD_GetReadLock
|
||||
SECMOD_HasRemovableSlots
|
||||
SECMOD_InternaltoPubMechFlags
|
||||
SECMOD_LoadModule
|
||||
SECMOD_LoadUserModule
|
||||
SECMOD_LockedModuleHasRemovableSlots
|
||||
SECMOD_OpenUserDB
|
||||
SECMOD_PubCipherFlagstoInternal
|
||||
SECMOD_PubMechFlagstoInternal
|
||||
|
|
|
|||
Loading…
Reference in a new issue