summaryrefslogtreecommitdiffstats
path: root/dirmngr/http-common.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-03-02 18:17:58 +0100
committerWerner Koch <wk@gnupg.org>2017-03-02 18:35:03 +0100
commit1890896fe698c55d15160a53aa6c5c22dc424031 (patch)
treef1cd8640391dea35ac52eef5e54561bd26b838af /dirmngr/http-common.h
parentdirmngr: Let --gpgconf-list return the default keyserver. (diff)
downloadgnupg2-1890896fe698c55d15160a53aa6c5c22dc424031.tar.xz
gnupg2-1890896fe698c55d15160a53aa6c5c22dc424031.zip
dirmngr: Rearrange files to fix de6d831.
* dirmngr/http-common.c: New. * dirmngr/http-common.h: New. * dirmngr/Makefile.am (dirmngr_SOURCES): Add them. (t_http_SOURCES): Add them. (t_ldap_parse_uri_SOURCES): Add them. * dirmngr/misc.c (get_default_keyserver): Move to ... * dirmngr/http-common.c: here. * dirmngr/http.c: Include http-common.h instead of misc.h. * dirmngr/http-ntbtls.c: Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'dirmngr/http-common.h')
-rw-r--r--dirmngr/http-common.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/dirmngr/http-common.h b/dirmngr/http-common.h
new file mode 100644
index 000000000..5e6657b16
--- /dev/null
+++ b/dirmngr/http-common.h
@@ -0,0 +1,25 @@
+/* http-common.h - Defs for common support for TLS implementations.
+ * Copyright (C) 2017 Werner Koch
+ *
+ * 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/>.
+ */
+
+#ifndef HTTP_COMMON_H
+#define HTTP_COMMON_H
+
+const char *get_default_keyserver (int name_only);
+
+#endif /* HTTP_COMMON_H */