aboutsummaryrefslogtreecommitdiffstats
path: root/set_protocol.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--set_protocol.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/set_protocol.c b/set_protocol.c
new file mode 100644
index 0000000..24ee522
--- /dev/null
+++ b/set_protocol.c
@@ -0,0 +1,12 @@
+/* See LICENSE file for copyright and license details. */
+#include "internal.h"
+
+
+gpgme_error_t
+liberror_gpgme_set_protocol(gpgme_ctx_t ctx, gpgme_protocol_t proto)
+{
+ gpgme_error_t ret = gpgme_set_protocol(ctx, proto);
+ if (ret)
+ liberror_gpgme_set_error("gpgme_set_protocol", ret);
+ return ret;
+}