mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-04 20:38:50 +01:00
2002-05-31 Timo Schulz <ts@winpt.org>
* pkclist.c (do_show_revocation_reason): Don't use capital letters for non-interactive output. (show_revocation_reason): Now it is global. * pubkey-enc.c (get_it): Show if the key has been revoked.
This commit is contained in:
parent
5f5c43ab26
commit
5f3acaffa9
@ -1,3 +1,10 @@
|
|||||||
|
2002-05-31 Timo Schulz <ts@winpt.org>
|
||||||
|
|
||||||
|
* pkclist.c (do_show_revocation_reason): Don't use capital
|
||||||
|
letters for non-interactive output.
|
||||||
|
(show_revocation_reason): Now it is global.
|
||||||
|
* pubkey-enc.c (get_it): Show if the key has been revoked.
|
||||||
|
|
||||||
2002-05-30 David Shaw <dshaw@jabberwocky.com>
|
2002-05-30 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* sign.c (write_signature_packets, sign_file, clearsign_file,
|
* sign.c (write_signature_packets, sign_file, clearsign_file,
|
||||||
|
@ -162,6 +162,7 @@ int keydb_search_fpr (KEYDB_HANDLE hd, const byte *fpr);
|
|||||||
|
|
||||||
|
|
||||||
/*-- pkclist.c --*/
|
/*-- pkclist.c --*/
|
||||||
|
void show_revocation_reason( PKT_public_key *pk, int mode );
|
||||||
int check_signatures_trust( PKT_signature *sig );
|
int check_signatures_trust( PKT_signature *sig );
|
||||||
void release_pk_list( PK_LIST pk_list );
|
void release_pk_list( PK_LIST pk_list );
|
||||||
int build_pk_list( STRLIST remusr, PK_LIST *ret_pk_list, unsigned use );
|
int build_pk_list( STRLIST remusr, PK_LIST *ret_pk_list, unsigned use );
|
||||||
|
@ -70,7 +70,7 @@ do_show_revocation_reason( PKT_signature *sig )
|
|||||||
else
|
else
|
||||||
text = NULL;
|
text = NULL;
|
||||||
|
|
||||||
log_info( _("Reason for revocation: ") );
|
log_info( _("reason for revocation: ") );
|
||||||
if( text )
|
if( text )
|
||||||
fputs( text, log_stream() );
|
fputs( text, log_stream() );
|
||||||
else
|
else
|
||||||
@ -87,7 +87,7 @@ do_show_revocation_reason( PKT_signature *sig )
|
|||||||
if( n ) {
|
if( n ) {
|
||||||
pp = memchr( p, '\n', n );
|
pp = memchr( p, '\n', n );
|
||||||
nn = pp? pp - p : n;
|
nn = pp? pp - p : n;
|
||||||
log_info( _("Revocation comment: ") );
|
log_info( _("revocation comment: ") );
|
||||||
print_string( log_stream(), p, nn, 0 );
|
print_string( log_stream(), p, nn, 0 );
|
||||||
putc( '\n', log_stream() );
|
putc( '\n', log_stream() );
|
||||||
p += nn; n -= nn;
|
p += nn; n -= nn;
|
||||||
@ -99,7 +99,7 @@ do_show_revocation_reason( PKT_signature *sig )
|
|||||||
/* Mode 0: try and find the revocation based on the pk (i.e. check
|
/* Mode 0: try and find the revocation based on the pk (i.e. check
|
||||||
subkeys, etc.) Mode 1: use only the revocation on the main pk */
|
subkeys, etc.) Mode 1: use only the revocation on the main pk */
|
||||||
|
|
||||||
static void
|
void
|
||||||
show_revocation_reason( PKT_public_key *pk, int mode )
|
show_revocation_reason( PKT_public_key *pk, int mode )
|
||||||
{
|
{
|
||||||
/* Hmmm, this is not so easy becuase we have to duplicate the code
|
/* Hmmm, this is not so easy becuase we have to duplicate the code
|
||||||
|
@ -244,13 +244,12 @@ get_it( PKT_pubkey_enc *enc, DEK *dek, PKT_secret_key *sk, u32 *keyid )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME: check wheter the key has been revoked and display
|
if ( pk->is_revoked ) {
|
||||||
* the revocation reason. Actually the user should know this himself,
|
log_info( _("NOTE: key has been revoked") );
|
||||||
* but the sender might not know already and therefor the user
|
putc( '\n', log_stream() );
|
||||||
* should get a notice that an revoked key has been used to decode
|
show_revocation_reason( pk, 1 );
|
||||||
* the message. The user can than watch out for snakes send by
|
}
|
||||||
* one of those Eves outside his paradise :-)
|
|
||||||
*/
|
|
||||||
release_kbnode (pkb);
|
release_kbnode (pkb);
|
||||||
rc = 0;
|
rc = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user