Author: tkreuzer
Date: Tue Jan 28 21:52:53 2014
New Revision: 61871
URL:
http://svn.reactos.org/svn/reactos?rev=61871&view=rev
Log:
[KSECDD]
Add public ksecioctl.h containing the supported IOCTLs
Added:
trunk/reactos/include/reactos/drivers/ksecdd/
trunk/reactos/include/reactos/drivers/ksecdd/ksecioctl.h (with props)
Modified:
trunk/reactos/drivers/crypto/ksecdd/CMakeLists.txt
trunk/reactos/drivers/crypto/ksecdd/dispatch.c
trunk/reactos/drivers/crypto/ksecdd/ksecdd.h
Modified: trunk/reactos/drivers/crypto/ksecdd/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/crypto/ksecdd/CMak…
==============================================================================
--- trunk/reactos/drivers/crypto/ksecdd/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/crypto/ksecdd/CMakeLists.txt [iso-8859-1] Tue Jan 28 21:52:53
2014
@@ -3,6 +3,7 @@
include_directories(
+ ${REACTOS_SOURCE_DIR}/include/reactos/drivers/ksecdd
${REACTOS_SOURCE_DIR}/lib/cryptlib)
list(APPEND SOURCE
Modified: trunk/reactos/drivers/crypto/ksecdd/dispatch.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/crypto/ksecdd/disp…
==============================================================================
--- trunk/reactos/drivers/crypto/ksecdd/dispatch.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/crypto/ksecdd/dispatch.c [iso-8859-1] Tue Jan 28 21:52:53 2014
@@ -9,6 +9,7 @@
/* INCLUDES *******************************************************************/
#include "ksecdd.h"
+#include <ksecioctl.h>
#define NDEBUG
#include <debug.h>
@@ -96,7 +97,12 @@
/* Check ioctl code */
switch (IoControlCode)
{
- case IOCTL_KSEC_GEN_RANDOM:
+ case IOCTL_KSEC_REGISTER_LSA_PROCESS:
+
+ Status = STATUS_SUCCESS;
+ break;
+
+ case IOCTL_KSEC_RANDOM_FILL_BUFFER:
Status = KsecGenRandom(Buffer, *OutputLength);
break;
Modified: trunk/reactos/drivers/crypto/ksecdd/ksecdd.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/crypto/ksecdd/ksec…
==============================================================================
--- trunk/reactos/drivers/crypto/ksecdd/ksecdd.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/crypto/ksecdd/ksecdd.h [iso-8859-1] Tue Jan 28 21:52:53 2014
@@ -9,10 +9,6 @@
#define _NO_KSECDD_IMPORT_
#include <ntifs.h>
#include <ndk/extypes.h>
-
-// 0x390004
-#define IOCTL_KSEC_GEN_RANDOM \
- CTL_CODE(FILE_DEVICE_KSEC, 0x01, METHOD_BUFFERED, FILE_ANY_ACCESS)
#if defined(_M_IX86) || defined(_M_AMD64)
typedef struct _KSEC_MACHINE_SPECIFIC_COUNTERS
Added: trunk/reactos/include/reactos/drivers/ksecdd/ksecioctl.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/drivers/ks…
==============================================================================
--- trunk/reactos/include/reactos/drivers/ksecdd/ksecioctl.h (added)
+++ trunk/reactos/include/reactos/drivers/ksecdd/ksecioctl.h [iso-8859-1] Tue Jan 28
21:52:53 2014
@@ -0,0 +1,43 @@
+
+
+#pragma once
+
+// 0: 0x398000 - called from LSASRV!LsapInitLsa
+#define IOCTL_KSEC_REGISTER_LSA_PROCESS \
+ CTL_CODE(FILE_DEVICE_KSEC, 0x00, METHOD_BUFFERED, FILE_WRITE_ACCESS)
+
+// 1: 0x390004 - called from tcpip!InitIsnGenerator
+#define IOCTL_KSEC_1 \
+ CTL_CODE(FILE_DEVICE_KSEC, 0x01, METHOD_BUFFERED, FILE_ANY_ACCESS)
+
+// 2: 0x390008 - called from SystemFunction036 aka RtlGenRandom via RandomFillBuffer
+#define IOCTL_KSEC_RANDOM_FILL_BUFFER \
+ CTL_CODE(FILE_DEVICE_KSEC, 0x02, METHOD_BUFFERED, FILE_ANY_ACCESS)
+
+// 3: 0x39000E - called from SystemFunction040 aka RtlEncryptMemory with OptionFlags ==
0
+#define IOCTL_KSEC_ENCRYPT_PROCESS \
+ CTL_CODE(FILE_DEVICE_KSEC, 0x03, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
+
+// 4: 0x390012 - called from SystemFunction041 aka RtlDecryptMemory with OptionFlags ==
0
+#define IOCTL_KSEC_DECRYPT_PROCESS \
+ CTL_CODE(FILE_DEVICE_KSEC, 0x04, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
+
+// 5: 0x390016 - called from SystemFunction040 aka RtlEncryptMemory with OptionFlags ==
1
+#define IOCTL_KSEC_ENCRYPT_CROSS_PROCESS \
+ CTL_CODE(FILE_DEVICE_KSEC, 0x05, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
+
+// 6: 0x39001A - called from SystemFunction041 aka RtlDecryptMemory with OptionFlags ==
1
+#define IOCTL_KSEC_DECRYPT_CROSS_PROCESS \
+ CTL_CODE(FILE_DEVICE_KSEC, 0x06, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
+
+// 7: 0x39001E - called from SystemFunction040 aka RtlEncryptMemory with OptionFlags ==
2
+#define IOCTL_KSEC_ENCRYPT_SAME_LOGON \
+ CTL_CODE(FILE_DEVICE_KSEC, 0x07, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
+
+// 8: 0x390022 - called from SystemFunction041 aka RtlDecryptMemory with OptionFlags ==
2
+#define IOCTL_KSEC_DECRYPT_SAME_LOGON \
+ CTL_CODE(FILE_DEVICE_KSEC, 0x08, METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
+
+// e: 0x390038 - see
http://wiki.mysmartlogon.com/Kernel_mode_SSP
+#define IOCTL_KSEC_REGISTER_EXTENSION \
+ CTL_CODE(FILE_DEVICE_KSEC, 0x0e, METHOD_BUFFERED, FILE_ANY_ACCESS)
Propchange: trunk/reactos/include/reactos/drivers/ksecdd/ksecioctl.h
------------------------------------------------------------------------------
svn:eol-style = native