~ubuntu-branches/ubuntu/hardy/gnupg/hardy-updates

« back to all changes in this revision

Viewing changes to keyserver/gpgkeys_hkp.c

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2006-12-12 15:56:56 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20061212155656-kk00wp4x0uq4tm1y
Tags: upstream-1.4.6
ImportĀ upstreamĀ versionĀ 1.4.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* gpgkeys_hkp.c - talk to an HKP keyserver
2
 
 * Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 
2
 * Copyright (C) 2001, 2002, 2003, 2004, 2005
 
3
 *               2006 Free Software Foundation, Inc.
3
4
 *
4
5
 * This file is part of GnuPG.
5
6
 *
17
18
 * along with this program; if not, write to the Free Software
18
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19
20
 * USA.
 
21
 *
 
22
 * In addition, as a special exception, the Free Software Foundation
 
23
 * gives permission to link the code of the keyserver helper tools:
 
24
 * gpgkeys_ldap, gpgkeys_curl and gpgkeys_hkp with the OpenSSL
 
25
 * project's "OpenSSL" library (or with modified versions of it that
 
26
 * use the same license as the "OpenSSL" library), and distribute the
 
27
 * linked executables.  You must obey the GNU General Public License
 
28
 * in all respects for all of the code used other than "OpenSSL".  If
 
29
 * you modify this file, you may extend this exception to your version
 
30
 * of the file, but you are not obligated to do so.  If you do not
 
31
 * wish to do so, delete this exception statement from your version.
20
32
 */
21
33
 
22
34
#include <config.h>
414
426
    strcat(request,"11371");
415
427
  strcat(request,opt->path);
416
428
  append_path(request,"/pks/lookup?op=index&options=mr&search=");
 
429
 
 
430
  /* HKP keyservers like the 0x to be present when searching by
 
431
     keyid */
 
432
  if(search_type==KS_SEARCH_KEYID_SHORT || search_type==KS_SEARCH_KEYID_LONG)
 
433
    strcat(request,"0x");
 
434
 
417
435
  strcat(request,searchkey_encoded);
418
436
 
419
437
  if(search_type!=KS_SEARCH_SUBSTR)