summaryrefslogtreecommitdiffhomepage
path: root/src/stubs
diff options
context:
space:
mode:
Diffstat (limited to 'src/stubs')
-rw-r--r--src/stubs/BCryptPrimitives.c6
-rw-r--r--src/stubs/bcryptprimitives.def7
2 files changed, 13 insertions, 0 deletions
diff --git a/src/stubs/BCryptPrimitives.c b/src/stubs/BCryptPrimitives.c
new file mode 100644
index 0000000..afcaa7e
--- /dev/null
+++ b/src/stubs/BCryptPrimitives.c
@@ -0,0 +1,6 @@
+/* This file is dedicated to the public domain. */
+
+// We have to define a real function with the right number of arguments to get
+// the mangled symbol _ProcessPrng@8, which the .def file apparently turns
+// into an "undecorate" .lib entry through some undocumented magic (of course!).
+int __stdcall ProcessPrng(void *x, unsigned int y) { return 0; }
diff --git a/src/stubs/bcryptprimitives.def b/src/stubs/bcryptprimitives.def
new file mode 100644
index 0000000..9021d7c
--- /dev/null
+++ b/src/stubs/bcryptprimitives.def
@@ -0,0 +1,7 @@
+; This file is dedicated to the public domain.
+
+LIBRARY bcryptprimitives
+EXPORTS
+ ProcessPrng
+
+; vi: sw=4 ts=4 noet tw=80 cc=80