mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
* Makefile.am: Don't build gpgkeys_http or gpgkeys_(old)hkp any longer as
this is done via curl or fake-curl. * ksutil.h, ksutil.c, gpgkeys_hkp.c, gpgkeys_curl.c: Minor #include tweaks as FAKE_CURL is no longer meaningful.
This commit is contained in:
parent
19c353232e
commit
e87d36ccf6
@ -1,3 +1,11 @@
|
|||||||
|
2006-04-26 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* Makefile.am: Don't build gpgkeys_http or gpgkeys_(old)hkp any
|
||||||
|
longer as this is done via curl or fake-curl.
|
||||||
|
|
||||||
|
* ksutil.h, ksutil.c, gpgkeys_hkp.c, gpgkeys_curl.c: Minor
|
||||||
|
#include tweaks as FAKE_CURL is no longer meaningful.
|
||||||
|
|
||||||
2006-04-10 David Shaw <dshaw@jabberwocky.com>
|
2006-04-10 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* gpgkeys_ldap.c (ldap_quote, get_name, search_key): LDAP-quote
|
* gpgkeys_ldap.c (ldap_quote, get_name, search_key): LDAP-quote
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Copyright (C) 2001, 2002, 2004, 2005 Free Software Foundation, Inc.
|
# Copyright (C) 2001, 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# This file is part of GnuPG.
|
# This file is part of GnuPG.
|
||||||
#
|
#
|
||||||
@ -19,18 +19,17 @@
|
|||||||
## Process this file with automake to produce Makefile.in
|
## Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/intl
|
INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/intl
|
||||||
EXTRA_PROGRAMS = gpgkeys_ldap gpgkeys_hkp gpgkeys_http gpgkeys_finger gpgkeys_curl
|
EXTRA_PROGRAMS = gpgkeys_ldap gpgkeys_hkp gpgkeys_finger gpgkeys_curl
|
||||||
EXTRA_SCRIPTS = gpgkeys_mailto
|
EXTRA_SCRIPTS = gpgkeys_mailto
|
||||||
|
|
||||||
gpglibexecdir = $(libexecdir)/@PACKAGE@
|
gpglibexecdir = $(libexecdir)/@PACKAGE@
|
||||||
|
|
||||||
gpglibexec_PROGRAMS = @GPGKEYS_LDAP@ @GPGKEYS_HKP@ @GPGKEYS_FINGER@ @GPGKEYS_HTTP@ @GPGKEYS_CURL@
|
gpglibexec_PROGRAMS = @GPGKEYS_LDAP@ @GPGKEYS_HKP@ @GPGKEYS_FINGER@ @GPGKEYS_CURL@
|
||||||
gpglibexec_SCRIPTS = @GPGKEYS_MAILTO@
|
gpglibexec_SCRIPTS = @GPGKEYS_MAILTO@
|
||||||
noinst_SCRIPTS = gpgkeys_test
|
noinst_SCRIPTS = gpgkeys_test
|
||||||
|
|
||||||
gpgkeys_ldap_SOURCES = gpgkeys_ldap.c ksutil.c ksutil.h
|
gpgkeys_ldap_SOURCES = gpgkeys_ldap.c ksutil.c ksutil.h
|
||||||
gpgkeys_hkp_SOURCES = ksutil.c ksutil.h
|
gpgkeys_hkp_SOURCES = gpgkeys_hkp.c ksutil.c ksutil.h
|
||||||
gpgkeys_http_SOURCES = gpgkeys_http.c ksutil.c ksutil.h
|
|
||||||
gpgkeys_finger_SOURCES = gpgkeys_finger.c ksutil.c ksutil.h
|
gpgkeys_finger_SOURCES = gpgkeys_finger.c ksutil.c ksutil.h
|
||||||
gpgkeys_curl_SOURCES = gpgkeys_curl.c ksutil.c ksutil.h
|
gpgkeys_curl_SOURCES = gpgkeys_curl.c ksutil.c ksutil.h
|
||||||
|
|
||||||
@ -39,11 +38,8 @@ other_libs = $(LIBICONV) $(LIBINTL) $(CAPLIBS)
|
|||||||
gpgkeys_ldap_CPPFLAGS = @LDAP_CPPFLAGS@
|
gpgkeys_ldap_CPPFLAGS = @LDAP_CPPFLAGS@
|
||||||
gpgkeys_ldap_LDADD = ../util/libutil.a @LDAPLIBS@ @NETLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
|
gpgkeys_ldap_LDADD = ../util/libutil.a @LDAPLIBS@ @NETLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
|
||||||
|
|
||||||
gpgkeys_http_LDADD = ../util/libutil.a @NETLIBS@ @SRVLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
|
|
||||||
gpgkeys_finger_LDADD = ../util/libutil.a @NETLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
|
gpgkeys_finger_LDADD = ../util/libutil.a @NETLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
|
||||||
|
|
||||||
if WITH_CURL
|
|
||||||
gpgkeys_hkp_SOURCES += gpgkeys_hkp.c
|
|
||||||
if FAKE_CURL
|
if FAKE_CURL
|
||||||
gpgkeys_curl_SOURCES += curl-shim.c curl-shim.h
|
gpgkeys_curl_SOURCES += curl-shim.c curl-shim.h
|
||||||
gpgkeys_curl_LDADD = ../util/libutil.a @NETLIBS@ @SRVLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
|
gpgkeys_curl_LDADD = ../util/libutil.a @NETLIBS@ @SRVLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
|
||||||
@ -55,7 +51,3 @@ gpgkeys_curl_LDADD = @LIBCURL@ @GETOPT@
|
|||||||
gpgkeys_hkp_CPPFLAGS = @LIBCURL_CPPFLAGS@
|
gpgkeys_hkp_CPPFLAGS = @LIBCURL_CPPFLAGS@
|
||||||
gpgkeys_hkp_LDADD = @LIBCURL@ @GETOPT@
|
gpgkeys_hkp_LDADD = @LIBCURL@ @GETOPT@
|
||||||
endif
|
endif
|
||||||
else
|
|
||||||
gpgkeys_hkp_SOURCES += gpgkeys_oldhkp.c
|
|
||||||
gpgkeys_hkp_LDADD = ../util/libutil.a @NETLIBS@ @SRVLIBS@ $(other_libs) @GETOPT@ @W32LIBS@
|
|
||||||
endif
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* gpgkeys_curl.c - fetch a key via libcurl
|
/* gpgkeys_curl.c - fetch a key via libcurl
|
||||||
* Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
* Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This file is part of GnuPG.
|
* This file is part of GnuPG.
|
||||||
*
|
*
|
||||||
@ -28,10 +28,10 @@
|
|||||||
#ifdef HAVE_GETOPT_H
|
#ifdef HAVE_GETOPT_H
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef FAKE_CURL
|
#ifdef HAVE_LIBCURL
|
||||||
#include "curl-shim.h"
|
|
||||||
#else
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
#else
|
||||||
|
#include "curl-shim.h"
|
||||||
#endif
|
#endif
|
||||||
#include "keyserver.h"
|
#include "keyserver.h"
|
||||||
#include "ksutil.h"
|
#include "ksutil.h"
|
||||||
|
@ -28,10 +28,10 @@
|
|||||||
#ifdef HAVE_GETOPT_H
|
#ifdef HAVE_GETOPT_H
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef FAKE_CURL
|
#ifdef HAVE_LIBCURL
|
||||||
#include "curl-shim.h"
|
|
||||||
#else
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
#else
|
||||||
|
#include "curl-shim.h"
|
||||||
#endif
|
#endif
|
||||||
#include "keyserver.h"
|
#include "keyserver.h"
|
||||||
#include "ksutil.h"
|
#include "ksutil.h"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* ksutil.c - general keyserver utility functions
|
/* ksutil.c - general keyserver utility functions
|
||||||
* Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
* Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This file is part of GnuPG.
|
* This file is part of GnuPG.
|
||||||
*
|
*
|
||||||
@ -29,10 +29,8 @@
|
|||||||
#ifdef HAVE_LIBCURL
|
#ifdef HAVE_LIBCURL
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#else
|
#else
|
||||||
#ifdef FAKE_CURL
|
|
||||||
#include "curl-shim.h"
|
#include "curl-shim.h"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#include "keyserver.h"
|
#include "keyserver.h"
|
||||||
#include "ksutil.h"
|
#include "ksutil.h"
|
||||||
|
|
||||||
@ -380,7 +378,6 @@ classify_ks_search(const char **search)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined (HAVE_LIBCURL) || defined (FAKE_CURL)
|
|
||||||
int
|
int
|
||||||
curl_err_to_gpg_err(CURLcode error)
|
curl_err_to_gpg_err(CURLcode error)
|
||||||
{
|
{
|
||||||
@ -541,4 +538,3 @@ curl_writer_finalize(struct curl_writer_ctx *ctx)
|
|||||||
ctx->flags.done=1;
|
ctx->flags.done=1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* ksutil.h
|
/* ksutil.h
|
||||||
* Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
* Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This file is part of GNUPG.
|
* This file is part of GNUPG.
|
||||||
*
|
*
|
||||||
@ -25,10 +25,8 @@
|
|||||||
#ifdef HAVE_LIBCURL
|
#ifdef HAVE_LIBCURL
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
#else
|
#else
|
||||||
#ifdef FAKE_CURL
|
|
||||||
#include "curl-shim.h"
|
#include "curl-shim.h"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
/* MAX_LINE must be at least 1 larger than the largest item we expect
|
/* MAX_LINE must be at least 1 larger than the largest item we expect
|
||||||
to receive, including the name tag ("COMMAND", "PORT", etc) and
|
to receive, including the name tag ("COMMAND", "PORT", etc) and
|
||||||
@ -107,7 +105,6 @@ const char *ks_action_to_string(enum ks_action action);
|
|||||||
void print_nocr(FILE *stream,const char *str);
|
void print_nocr(FILE *stream,const char *str);
|
||||||
enum ks_search_type classify_ks_search(const char **search);
|
enum ks_search_type classify_ks_search(const char **search);
|
||||||
|
|
||||||
#if defined (HAVE_LIBCURL) || defined (FAKE_CURL)
|
|
||||||
int curl_err_to_gpg_err(CURLcode error);
|
int curl_err_to_gpg_err(CURLcode error);
|
||||||
|
|
||||||
struct curl_writer_ctx
|
struct curl_writer_ctx
|
||||||
@ -130,6 +127,4 @@ struct curl_writer_ctx
|
|||||||
size_t curl_writer(const void *ptr,size_t size,size_t nmemb,void *cw_ctx);
|
size_t curl_writer(const void *ptr,size_t size,size_t nmemb,void *cw_ctx);
|
||||||
void curl_writer_finalize(struct curl_writer_ctx *ctx);
|
void curl_writer_finalize(struct curl_writer_ctx *ctx);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* !_KSUTIL_H_ */
|
#endif /* !_KSUTIL_H_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user