diff options
author | Werner Koch <[email protected]> | 2006-08-16 10:47:53 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2006-08-16 10:47:53 +0000 |
commit | b744f963d7061ce55d2eed65b281298476e54fb7 (patch) | |
tree | 6e8ccb3c39a45c16b4ca6cdb2273eb3b8bc2a888 /common/http.c | |
parent | Changed HTTP API. (diff) | |
download | gnupg-b744f963d7061ce55d2eed65b281298476e54fb7.tar.gz gnupg-b744f963d7061ce55d2eed65b281298476e54fb7.zip |
With --enable-gpg the keyservers are now build and a first test using gpg2
shows no prblems. Needs more testing of course.
Diffstat (limited to '')
-rw-r--r-- | common/http.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/http.c b/common/http.c index 22ee5c23c..e77e1d11e 100644 --- a/common/http.c +++ b/common/http.c @@ -67,10 +67,11 @@ typedef gnutls_transport_ptr gnutls_transport_ptr_t; #include "util.h" #include "http.h" - +#ifdef USE_DNS_SRV +#include "srv.h" +#else /*!USE_DNS_SRV*/ /* If we are not compiling with SRV record support we provide stub data structures. */ -#ifndef USE_DNS_SRV #ifndef MAXDNAME #define MAXDNAME 1025 #endif @@ -1366,7 +1367,7 @@ connect_server (const char *server, unsigned short port, { char srvname[MAXDNAME]; - stprcpy (stpcpy (stpcpy (stpcpy (srvname,"_"), srvtag), + stpcpy (stpcpy (stpcpy (stpcpy (srvname,"_"), srvtag), "._tcp."), server); srvcount = getsrv (srvname, &serverlist); } |