1 /* 2 * PROJECT: ReactOS Kernel 3 * LICENSE: GPL - See COPYING in the top level directory 4 * FILE: ntoskrnl/config/cmsecach.c 5 * PURPOSE: Configuration Manager - Security Cache 6 * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org) 7 */ 8 9 /* INCLUDES ******************************************************************/ 10 11 #include "ntoskrnl.h" 12 #define NDEBUG 13 #include "debug.h" 14 15 /* GLOBALS *******************************************************************/ 16 17 /* FUNCTIONS *****************************************************************/ 18 19 VOID 20 NTAPI 21 CmpInitSecurityCache(IN PCMHIVE Hive) 22 { 23 ULONG i; 24 25 /* Reset data */ 26 Hive->SecurityCount = 0; 27 Hive->SecurityCacheSize = 0; 28 Hive->SecurityHitHint = -1; 29 Hive->SecurityCache = NULL; 30 31 /* Loop every security hash */ 32 for (i = 0; i < CMP_SECURITY_HASH_LISTS; i++) 33 { 34 /* Initialize it */ 35 InitializeListHead(&Hive->SecurityHash[i]); 36 } 37 } 38 39 VOID 40 NTAPI 41 CmpDestroySecurityCache(IN PCMHIVE Hive) 42 { 43 /* FIXME: clean Hive->SecurityHash and/or Hive->SecurityCache */ 44 45 /* Reset data */ 46 Hive->SecurityCount = 0; 47 Hive->SecurityCacheSize = 0; 48 Hive->SecurityHitHint = -1; 49 Hive->SecurityCache = NULL; 50 } 51 52 /* EOF */ 53