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

« back to all changes in this revision

Viewing changes to g10/revoke.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-02-02 14:29:54 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070202142954-f5h55skq432ona6m
Tags: 2.0.2-0ubuntu1
* New upstream release
  - includes the patch for CVE-2006-6235
  - a PIN pad can now also be used for signing keys
* 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
* g10/call-agent.c: set DBG_ASSUAN to 0 to suppress a debug message
* debian/rules: add doc/com-certs.pem to the docs for gpgsm
* debian/README.Debian: remove note the gnupg2 isn't released yet.
* Modified Maintainer values to match Debian-Maintainer-Field spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
gen_desig_revoke( const char *uname, strlist_t locusr )
201
201
{
202
202
    int rc = 0;
203
 
    armor_filter_context_t afx;
 
203
    armor_filter_context_t *afx;
204
204
    PKT_public_key *pk = NULL;
205
205
    PKT_secret_key *sk = NULL;
206
206
    PKT_signature *sig = NULL;
219
219
        return G10ERR_GENERAL;
220
220
      }
221
221
 
222
 
    memset( &afx, 0, sizeof afx);
 
222
    afx = new_armor_context ();
223
223
 
224
224
    kdbhd = keydb_new (0);
225
225
    classify_user_id (uname, &desc);
331
331
            if( (rc = open_outfile( NULL, 0, &out )) )
332
332
              goto leave;
333
333
 
334
 
            afx.what = 1;
335
 
            afx.hdrlines = "Comment: A designated revocation certificate"
 
334
            afx->what = 1;
 
335
            afx->hdrlines = "Comment: A designated revocation certificate"
336
336
              " should follow\n";
337
 
            iobuf_push_filter( out, armor_filter, &afx );
 
337
            push_armor_filter (afx, out);
338
338
 
339
339
            /* create it */
340
340
            rc = make_keysig_packet( &sig, pk, NULL, NULL, sk, 0x20, 0,
427
427
    else
428
428
        iobuf_close(out);
429
429
    release_revocation_reason_info( reason );
 
430
    release_armor_context (afx);
430
431
    return rc;
431
432
}
432
433
 
438
439
gen_revoke( const char *uname )
439
440
{
440
441
    int rc = 0;
441
 
    armor_filter_context_t afx;
 
442
    armor_filter_context_t *afx;
442
443
    PACKET pkt;
443
444
    PKT_secret_key *sk; /* used as pointer into a kbnode */
444
445
    PKT_public_key *pk = NULL;
457
458
        return G10ERR_GENERAL;
458
459
      }
459
460
 
460
 
    memset( &afx, 0, sizeof afx);
 
461
    afx = new_armor_context ();
461
462
    init_packet( &pkt );
462
463
 
463
464
    /* search the userid: 
556
557
    if( (rc = open_outfile( NULL, 0, &out )) )
557
558
        goto leave;
558
559
 
559
 
    afx.what = 1;
560
 
    afx.hdrlines = "Comment: A revocation certificate should follow\n";
561
 
    iobuf_push_filter( out, armor_filter, &afx );
 
560
    afx->what = 1;
 
561
    afx->hdrlines = "Comment: A revocation certificate should follow\n";
 
562
    push_armor_filter (afx, out);
562
563
 
563
564
    /* create it */
564
565
    rc = make_keysig_packet( &sig, pk, NULL, NULL, sk, 0x20, 0,
609
610
    else
610
611
        iobuf_close(out);
611
612
    release_revocation_reason_info( reason );
 
613
    release_armor_context (afx);
612
614
    return rc;
613
615
}
614
616