aboutsummaryrefslogtreecommitdiffstats
path: root/data_new_from_mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'data_new_from_mem.c')
-rw-r--r--data_new_from_mem.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/data_new_from_mem.c b/data_new_from_mem.c
new file mode 100644
index 0000000..574d8a0
--- /dev/null
+++ b/data_new_from_mem.c
@@ -0,0 +1,12 @@
+/* See LICENSE file for copyright and license details. */
+#include "internal.h"
+
+
+gpgme_error_t
+liberror_gpgme_data_new_from_mem(gpgme_data_t *r_dh, const char *buffer, size_t size, int copy)
+{
+ gpgme_error_t ret = gpgme_data_new_from_mem(r_dh, buffer, size, copy);
+ if (ret)
+ liberror_gpgme_set_error("gpgme_data_new_from_mem", ret);
+ return ret;
+}