~ubuntu-branches/ubuntu/gutsy/gnupg2/gutsy

« back to all changes in this revision

Viewing changes to g10/getkey.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-03-09 12:32:03 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070309123203-64xnl30ctoyv4pcv
Tags: 2.0.3-1ubuntu1
* Merge from Debian unstable. Remaining changes:
  - Remove libpcsclite-dev, libopensc2-dev build dependencies (they are in
    universe).
  - Build-depend on libcurl3-gnutls-dev
  - Include /doc files as done with gnupg
  - debian/rules: add doc/com-certs.pem to the docs for gpgsm
  - g10/call-agent.c: set DBG_ASSUAN to 0 to suppress a debug message
  - debian/README.Debian: remove note the gnupg2 isn't released yet.
  - debian/control: Change Maintainer/XSBC-Original-Maintainer field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* getkey.c -  Get a key from the database
2
2
 * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
3
 
 *               2006 Free Software Foundation, Inc.
 
3
 *               2006, 2007 Free Software Foundation, Inc.
4
4
 *
5
5
 * This file is part of GnuPG.
6
6
 *
1490
1490
 
1491
1491
    sig->flags.chosen_selfsig = 1; /* we chose this one */
1492
1492
    uid->created = 0; /* not created == invalid */
1493
 
    if ( IS_UID_REV ( sig ) ) {
 
1493
    if ( IS_UID_REV ( sig ) ) 
 
1494
      {
1494
1495
        uid->is_revoked = 1;
1495
1496
        return; /* has been revoked */
1496
 
    }
 
1497
      }
 
1498
    else
 
1499
      uid->is_revoked = 0;
1497
1500
 
1498
1501
    uid->expiredate = sig->expiredate;
1499
1502
 
1500
 
    if(sig->flags.expired)
 
1503
    if (sig->flags.expired)
1501
1504
      {
1502
1505
        uid->is_expired = 1;
1503
1506
        return; /* has expired */
1504
1507
      }
 
1508
    else
 
1509
      uid->is_expired = 0;
1505
1510
 
1506
1511
    uid->created = sig->timestamp; /* this one is okay */
1507
1512
    uid->selfsigversion = sig->version;