summaryrefslogtreecommitdiffstats
path: root/test/testutil/apps_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/testutil/apps_mem.c')
-rw-r--r--test/testutil/apps_mem.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/testutil/apps_mem.c b/test/testutil/apps_mem.c
new file mode 100644
index 0000000000..fa60bc6848
--- /dev/null
+++ b/test/testutil/apps_mem.c
@@ -0,0 +1,19 @@
+/*
+ * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+#include "apps.h"
+
+/* shim that avoids sucking in too much from apps/apps.c */
+
+void* app_malloc(int sz, const char *what)
+{
+ void *vp = OPENSSL_malloc(sz);
+
+ return vp;
+}