diff options
author | Werner Koch <wk@gnupg.org> | 2017-03-02 18:17:58 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-03-02 18:35:03 +0100 |
commit | 1890896fe698c55d15160a53aa6c5c22dc424031 (patch) | |
tree | f1cd8640391dea35ac52eef5e54561bd26b838af /dirmngr/http-common.h | |
parent | dirmngr: Let --gpgconf-list return the default keyserver. (diff) | |
download | gnupg2-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.h | 25 |
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 */ |