summaryrefslogtreecommitdiff
path: root/dirmngr/t-support.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-02-09 16:00:49 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-02-09 16:00:49 +0900
commite44fd53e752fcce7add5c9edf81fd854e1560ad6 (patch)
tree1671eb98c13681076d18e2856b7a4ee100dc8e56 /dirmngr/t-support.c
parentd1ee8399f075bff2b90a58f59fce00a3887feb26 (diff)
downloadgpg2-e44fd53e752fcce7add5c9edf81fd854e1560ad6.tar.gz
gpg2-e44fd53e752fcce7add5c9edf81fd854e1560ad6.tar.bz2
gpg2-e44fd53e752fcce7add5c9edf81fd854e1560ad6.zip
Imported Upstream version 2.2.18upstream/2.2.18
Diffstat (limited to 'dirmngr/t-support.c')
-rw-r--r--dirmngr/t-support.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/dirmngr/t-support.c b/dirmngr/t-support.c
new file mode 100644
index 0000000..fc9546a
--- /dev/null
+++ b/dirmngr/t-support.c
@@ -0,0 +1,43 @@
+/* t-support.c - Module test support (stubs etc).
+ * Copyright (C) 2018 g10 Code GmbH
+ *
+ * This file is part of GnuPG.
+ *
+ * GnuPG is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * GnuPG 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see <https://www.gnu.org/licenses/>.
+ * SPDX-License-Identifier: GPL-3.0+
+ */
+
+#include <config.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <assert.h>
+
+
+#include "../common/util.h"
+#include "dirmngr-status.h"
+#include "t-support.h"
+
+
+
+/* Stub for testing. See server.c for the real implementation. */
+gpg_error_t
+dirmngr_status_printf (ctrl_t ctrl, const char *keyword,
+ const char *format, ...)
+{
+ (void)ctrl;
+ (void)keyword;
+ (void)format;
+
+ return 0;
+}