mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Revamped the trustDB
This commit is contained in:
parent
abdd248af9
commit
a3af543617
24 changed files with 1682 additions and 3756 deletions
15
g10/keygen.c
15
g10/keygen.c
|
@ -32,6 +32,7 @@
|
|||
#include "ttyio.h"
|
||||
#include "options.h"
|
||||
#include "keydb.h"
|
||||
#include "trustdb.h"
|
||||
#include "status.h"
|
||||
#include "i18n.h"
|
||||
|
||||
|
@ -1934,9 +1935,19 @@ do_generate_keypair( struct para_data_s *para,
|
|||
get_parameter_algo(para, pKEYTYPE) == PUBKEY_ALGO_RSA
|
||||
&& get_parameter_uint( para, pKEYUSAGE )
|
||||
&& !(get_parameter_uint( para,pKEYUSAGE) & PUBKEY_USAGE_ENC);
|
||||
PKT_public_key *pk = find_kbnode (pub_root,
|
||||
PKT_PUBLIC_KEY)->pkt->pkt.public_key;
|
||||
|
||||
update_ownertrust (pk,
|
||||
((get_ownertrust (pk) & ~TRUST_MASK)
|
||||
| TRUST_ULTIMATE ));
|
||||
|
||||
if (!opt.batch) {
|
||||
tty_printf(_("public and secret key created and signed.\n") );
|
||||
tty_printf(_("key marked as ultimately trusted.\n") );
|
||||
}
|
||||
|
||||
|
||||
if( !opt.batch )
|
||||
tty_printf(_("public and secret key created and signed.\n") );
|
||||
if( !opt.batch
|
||||
&& ( get_parameter_algo( para, pKEYTYPE ) == PUBKEY_ALGO_DSA
|
||||
|| no_enc_rsa )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue