[svn] GnuPG - r4405 - branches/STABLE-BRANCH-1-4/keyserver
svn author dshaw
cvs at cvs.gnupg.org
Tue Jan 16 19:12:44 CET 2007
Author: dshaw
Date: 2007-01-16 19:12:43 +0100 (Tue, 16 Jan 2007)
New Revision: 4405
Modified:
branches/STABLE-BRANCH-1-4/keyserver/ChangeLog
branches/STABLE-BRANCH-1-4/keyserver/curl-shim.c
branches/STABLE-BRANCH-1-4/keyserver/curl-shim.h
branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_hkp.c
Log:
* curl-shim.h, curl-shim.c, gpgkeys_hkp.c: Rename curl_escape() to
curl_easy_escape() to match cURL.
Modified: branches/STABLE-BRANCH-1-4/keyserver/ChangeLog
===================================================================
--- branches/STABLE-BRANCH-1-4/keyserver/ChangeLog 2007-01-16 06:10:31 UTC (rev 4404)
+++ branches/STABLE-BRANCH-1-4/keyserver/ChangeLog 2007-01-16 18:12:43 UTC (rev 4405)
@@ -1,3 +1,8 @@
+2007-01-16 David Shaw <dshaw at jabberwocky.com>
+
+ * curl-shim.h, curl-shim.c, gpgkeys_hkp.c: Rename curl_escape() to
+ curl_easy_escape() to match cURL.
+
2007-01-15 David Shaw <dshaw at jabberwocky.com>
* gpgkeys_hkp.c (send_key): Allow GPG to send any armored key line
Modified: branches/STABLE-BRANCH-1-4/keyserver/curl-shim.c
===================================================================
--- branches/STABLE-BRANCH-1-4/keyserver/curl-shim.c 2007-01-16 06:10:31 UTC (rev 4404)
+++ branches/STABLE-BRANCH-1-4/keyserver/curl-shim.c 2007-01-16 18:12:43 UTC (rev 4405)
@@ -1,7 +1,7 @@
/* curl-shim.c - Implement a small subset of the curl API in terms of
* the iobuf HTTP API
*
- * Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+ * Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -265,7 +265,7 @@
"0123456789"
char *
-curl_escape(char *str,int length)
+curl_easy_escape(CURL *curl,char *str,int length)
{
int len,max,idx,enc_idx=0;
char *enc;
Modified: branches/STABLE-BRANCH-1-4/keyserver/curl-shim.h
===================================================================
--- branches/STABLE-BRANCH-1-4/keyserver/curl-shim.h 2007-01-16 06:10:31 UTC (rev 4404)
+++ branches/STABLE-BRANCH-1-4/keyserver/curl-shim.h 2007-01-16 18:12:43 UTC (rev 4405)
@@ -1,5 +1,5 @@
/* curl-shim.h
- * Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+ * Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
*
* This file is part of GNUPG.
*
@@ -85,7 +85,7 @@
CURLcode curl_easy_setopt(CURL *curl,CURLoption option,...);
CURLcode curl_easy_perform(CURL *curl);
void curl_easy_cleanup(CURL *curl);
-char *curl_escape(char *str,int len);
+char *curl_easy_escape(CURL *curl,char *str,int len);
void curl_free(char *ptr);
#define curl_version() "GnuPG curl-shim "VERSION
Modified: branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_hkp.c
===================================================================
--- branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_hkp.c 2007-01-16 06:10:31 UTC (rev 4404)
+++ branches/STABLE-BRANCH-1-4/keyserver/gpgkeys_hkp.c 2007-01-16 18:12:43 UTC (rev 4405)
@@ -166,7 +166,7 @@
goto fail;
}
- encoded_key=curl_escape(key,keysize);
+ encoded_key=curl_easy_escape(curl,key,keysize);
if(!encoded_key)
{
fprintf(console,"gpgkeys: out of memory\n");
@@ -317,7 +317,7 @@
memset(&ctx,0,sizeof(ctx));
- searchkey_encoded=curl_escape((char *)getkey,0);
+ searchkey_encoded=curl_easy_escape(curl,(char *)getkey,0);
if(!searchkey_encoded)
{
fprintf(console,"gpgkeys: out of memory\n");
@@ -403,7 +403,7 @@
fprintf(console,"gpgkeys: search type is %d, and key is \"%s\"\n",
search_type,searchkey);
- searchkey_encoded=curl_escape((char *)searchkey,0);
+ searchkey_encoded=curl_easy_escape(curl,(char *)searchkey,0);
if(!searchkey_encoded)
{
fprintf(console,"gpgkeys: out of memory\n");
More information about the Gnupg-commits
mailing list