[PATCH 4/4] tbs: Add Tbsi_Context_Create stub
Alex Henrie
alexhenrie24 at gmail.com
Tue Jun 29 21:33:48 CDT 2021
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51335
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
dlls/tbs/Makefile.in | 3 +++
dlls/tbs/tbs.c | 31 +++++++++++++++++++++++++++++++
dlls/tbs/tbs.spec | 2 +-
3 files changed, 35 insertions(+), 1 deletion(-)
create mode 100644 dlls/tbs/tbs.c
diff --git a/dlls/tbs/Makefile.in b/dlls/tbs/Makefile.in
index 8f23c81e4f9..454d66bc6f4 100644
--- a/dlls/tbs/Makefile.in
+++ b/dlls/tbs/Makefile.in
@@ -1,3 +1,6 @@
MODULE = tbs.dll
EXTRADLLFLAGS = -mno-cygwin
+
+C_SRCS = \
+ tbs.c
diff --git a/dlls/tbs/tbs.c b/dlls/tbs/tbs.c
new file mode 100644
index 00000000000..5f09f5de125
--- /dev/null
+++ b/dlls/tbs/tbs.c
@@ -0,0 +1,31 @@
+/*
+ * Trusted Platform Module Base Services
+ *
+ * Copyright 2021 Alex Henrie
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "windef.h"
+#include "tbs.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(tbs);
+
+TBS_RESULT Tbsi_Context_Create(const TBS_CONTEXT_PARAMS *params, TBS_HCONTEXT *out)
+{
+ FIXME("(%p, %p) stub\n", params, out);
+ return TBS_E_TPM_NOT_FOUND;
+}
diff --git a/dlls/tbs/tbs.spec b/dlls/tbs/tbs.spec
index 50193d10c70..ee53cf8f89a 100644
--- a/dlls/tbs/tbs.spec
+++ b/dlls/tbs/tbs.spec
@@ -1,4 +1,4 @@
-@ stub Tbsi_Context_Create
+@ stdcall Tbsi_Context_Create(ptr ptr)
@ stub Tbsi_Create_Attestation_From_Log
@ stub Tbsi_FilterLog
@ stub Tbsi_GetDeviceInfo
--
2.32.0.94.ge083fb24f6
More information about the wine-devel
mailing list