- Part one of major RTL cleanup. Merge duplicated code and stick everything in lib...
[reactos.git] / reactos / lib / rtl / security.c
index b1e22fc..289d445 100644 (file)
@@ -1,21 +1,19 @@
-/* $Id$
- *
- * COPYRIGHT:       See COPYING in the top level directory
- * PROJECT:         ReactOS kernel
- * FILE:            lib/rtl/security.c
- * PURPOSE:         Miscellaneous securitiy related functions
- * PROGRAMMER:      Eric Kohl
- * UPDATE HISTORY:
- *                  21/11/2001 Created
+/*
+ * COPYRIGHT:         See COPYING in the top level directory
+ * PROJECT:           ReactOS system libraries
+ * FILE:              lib/rtl/security.c
+ * PURPOSE:           Security related functions and Security Objects
+ * PROGRAMMER:        Eric Kohl
  */
 
+/* INCLUDES *****************************************************************/
+
 #include <rtl.h>
 
 #define NDEBUG
 #include <debug.h>
 
-
-/* FUNCTIONS ****************************************************************/
+/* FUNCTIONS ***************************************************************/
 
 /*
  * @implemented
@@ -162,4 +160,68 @@ RtlAdjustPrivilege(IN ULONG Privilege,
    return STATUS_SUCCESS;
 }
 
+/*
+ * @implemented
+ */
+NTSTATUS
+STDCALL
+RtlDeleteSecurityObject(IN PSECURITY_DESCRIPTOR *ObjectDescriptor)
+{
+    DPRINT("RtlDeleteSecurityObject(%p)\n", ObjectDescriptor);
+
+    RtlFreeHeap(RtlGetProcessHeap(),
+                0,
+                *ObjectDescriptor);
+
+    return STATUS_SUCCESS;
+}
+
+
+/*
+ * @unimplemented
+ */
+NTSTATUS
+STDCALL
+RtlNewSecurityObject(IN PSECURITY_DESCRIPTOR ParentDescriptor,
+                     IN PSECURITY_DESCRIPTOR CreatorDescriptor,
+                     OUT PSECURITY_DESCRIPTOR *NewDescriptor,
+                     IN BOOLEAN IsDirectoryObject,
+                     IN HANDLE Token,
+                     IN PGENERIC_MAPPING GenericMapping)
+{
+    UNIMPLEMENTED;
+    return STATUS_NOT_IMPLEMENTED;
+}
+
+
+/*
+ * @unimplemented
+ */
+NTSTATUS
+STDCALL
+RtlQuerySecurityObject(IN PSECURITY_DESCRIPTOR ObjectDescriptor,
+                       IN SECURITY_INFORMATION SecurityInformation,
+                       OUT PSECURITY_DESCRIPTOR ResultantDescriptor,
+                       IN ULONG DescriptorLength,
+                       OUT PULONG ReturnLength)
+{
+    UNIMPLEMENTED;
+    return STATUS_NOT_IMPLEMENTED;
+}
+
+
+/*
+ * @unimplemented
+ */
+NTSTATUS
+STDCALL
+RtlSetSecurityObject(IN SECURITY_INFORMATION SecurityInformation,
+                     IN PSECURITY_DESCRIPTOR ModificationDescriptor,
+                     OUT PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor,
+                     IN PGENERIC_MAPPING GenericMapping,
+                     IN HANDLE Token)
+{
+    UNIMPLEMENTED;
+    return STATUS_NOT_IMPLEMENTED;
+}
 /* EOF */