mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-28 22:49:59 +01:00
* main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu): Reorder
user ID display in the --edit-key menu to match that of the --list-keys display. * tdbio.c (tdbio_read_record, tdbio_write_record): Comments to reserve a byte for trust model in the devel version. * g10.c (add_notation_data): Fix initialization.
This commit is contained in:
parent
03aaecf3f8
commit
33783a41a4
@ -1,3 +1,14 @@
|
|||||||
|
2002-12-03 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* main.h, keylist.c (reorder_keyblock), keyedit.c (keyedit_menu):
|
||||||
|
Reorder user ID display in the --edit-key menu to match that of
|
||||||
|
the --list-keys display.
|
||||||
|
|
||||||
|
* tdbio.c (tdbio_read_record, tdbio_write_record): Comments to
|
||||||
|
reserve a byte for trust model in the devel version.
|
||||||
|
|
||||||
|
* g10.c (add_notation_data): Fix initialization.
|
||||||
|
|
||||||
2002-12-01 David Shaw <dshaw@jabberwocky.com>
|
2002-12-01 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* keyedit.c (menu_expire): Don't lose key flags when changing the
|
* keyedit.c (menu_expire): Don't lose key flags when changing the
|
||||||
@ -10,7 +21,7 @@
|
|||||||
(keygen_copy_flags_add_expire): New version of
|
(keygen_copy_flags_add_expire): New version of
|
||||||
keygen_add_key_expire that also copies key flags.
|
keygen_add_key_expire that also copies key flags.
|
||||||
(keygen_add_key_flags_and_expire): Use do_add_key_expire.
|
(keygen_add_key_flags_and_expire): Use do_add_key_expire.
|
||||||
|
|
||||||
* import.c (fix_hkp_corruption): Comment.
|
* import.c (fix_hkp_corruption): Comment.
|
||||||
|
|
||||||
2002-11-23 David Shaw <dshaw@jabberwocky.com>
|
2002-11-23 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
@ -2723,7 +2723,7 @@ add_notation_data( const char *string, int which )
|
|||||||
for( s=string ; *s != '='; s++ )
|
for( s=string ; *s != '='; s++ )
|
||||||
{
|
{
|
||||||
if( *s=='@')
|
if( *s=='@')
|
||||||
saw_at=0;
|
saw_at=1;
|
||||||
|
|
||||||
if( !*s || (*s & 0x80) || (!isgraph(*s) && !isspace(*s)) )
|
if( !*s || (*s & 0x80) || (!isgraph(*s) && !isspace(*s)) )
|
||||||
{
|
{
|
||||||
|
@ -980,6 +980,7 @@ keyedit_menu( const char *username, STRLIST locusr, STRLIST commands,
|
|||||||
modified++;
|
modified++;
|
||||||
if( collapse_uids( &keyblock ) )
|
if( collapse_uids( &keyblock ) )
|
||||||
modified++;
|
modified++;
|
||||||
|
reorder_keyblock(keyblock);
|
||||||
|
|
||||||
if( !sign_mode ) {/* see whether we have a matching secret key */
|
if( !sign_mode ) {/* see whether we have a matching secret key */
|
||||||
PKT_public_key *pk = keyblock->pkt->pkt.public_key;
|
PKT_public_key *pk = keyblock->pkt->pkt.public_key;
|
||||||
|
@ -911,7 +911,7 @@ list_keyblock_colon( KBNODE keyblock, int secret, int fpr )
|
|||||||
* Reorder the keyblock so that the primary user ID (and not attribute
|
* Reorder the keyblock so that the primary user ID (and not attribute
|
||||||
* packet) comes first. Fixme: Replace this by a generic sort
|
* packet) comes first. Fixme: Replace this by a generic sort
|
||||||
* function. */
|
* function. */
|
||||||
static void
|
void
|
||||||
reorder_keyblock (KBNODE keyblock)
|
reorder_keyblock (KBNODE keyblock)
|
||||||
{
|
{
|
||||||
KBNODE primary = NULL, primary0 = NULL, primary2 = NULL;
|
KBNODE primary = NULL, primary0 = NULL, primary2 = NULL;
|
||||||
|
@ -199,6 +199,7 @@ void release_revocation_reason_info( struct revocation_reason_info *reason );
|
|||||||
/*-- keylist.c --*/
|
/*-- keylist.c --*/
|
||||||
void public_key_list( STRLIST list );
|
void public_key_list( STRLIST list );
|
||||||
void secret_key_list( STRLIST list );
|
void secret_key_list( STRLIST list );
|
||||||
|
void reorder_keyblock (KBNODE keyblock);
|
||||||
void list_keyblock( KBNODE keyblock, int secret, int fpr, void *opaque );
|
void list_keyblock( KBNODE keyblock, int secret, int fpr, void *opaque );
|
||||||
void print_fingerprint (PKT_public_key *pk, PKT_secret_key *sk, int mode);
|
void print_fingerprint (PKT_public_key *pk, PKT_secret_key *sk, int mode);
|
||||||
void show_policy_url(PKT_signature *sig,int indent);
|
void show_policy_url(PKT_signature *sig,int indent);
|
||||||
|
10
g10/tdbio.c
10
g10/tdbio.c
@ -427,8 +427,8 @@ create_version_record (void)
|
|||||||
memset( &rec, 0, sizeof rec );
|
memset( &rec, 0, sizeof rec );
|
||||||
rec.r.ver.version = 3;
|
rec.r.ver.version = 3;
|
||||||
rec.r.ver.created = make_timestamp();
|
rec.r.ver.created = make_timestamp();
|
||||||
rec.r.ver.marginals = opt.marginals_needed;
|
rec.r.ver.marginals = opt.marginals_needed;
|
||||||
rec.r.ver.completes = opt.completes_needed;
|
rec.r.ver.completes = opt.completes_needed;
|
||||||
rec.r.ver.cert_depth = opt.max_cert_depth;
|
rec.r.ver.cert_depth = opt.max_cert_depth;
|
||||||
rec.rectype = RECTYPE_VER;
|
rec.rectype = RECTYPE_VER;
|
||||||
rec.recnum = 0;
|
rec.recnum = 0;
|
||||||
@ -1158,6 +1158,9 @@ tdbio_read_record( ulong recnum, TRUSTREC *rec, int expected )
|
|||||||
rec->r.ver.marginals = *p++;
|
rec->r.ver.marginals = *p++;
|
||||||
rec->r.ver.completes = *p++;
|
rec->r.ver.completes = *p++;
|
||||||
rec->r.ver.cert_depth = *p++;
|
rec->r.ver.cert_depth = *p++;
|
||||||
|
/* Warning - one byte of this is used in the devel version.
|
||||||
|
If you change this, make sure to consult the same code in
|
||||||
|
devel. */
|
||||||
p += 4; /* lock flags */
|
p += 4; /* lock flags */
|
||||||
rec->r.ver.created = buftoulong(p); p += 4;
|
rec->r.ver.created = buftoulong(p); p += 4;
|
||||||
rec->r.ver.nextcheck = buftoulong(p); p += 4;
|
rec->r.ver.nextcheck = buftoulong(p); p += 4;
|
||||||
@ -1241,6 +1244,9 @@ tdbio_write_record( TRUSTREC *rec )
|
|||||||
*p++ = rec->r.ver.marginals;
|
*p++ = rec->r.ver.marginals;
|
||||||
*p++ = rec->r.ver.completes;
|
*p++ = rec->r.ver.completes;
|
||||||
*p++ = rec->r.ver.cert_depth;
|
*p++ = rec->r.ver.cert_depth;
|
||||||
|
/* Warning - one byte of this is used in the devel version.
|
||||||
|
If you change this, make sure to consult the same code in
|
||||||
|
devel. */
|
||||||
p += 4; /* skip lock flags */
|
p += 4; /* skip lock flags */
|
||||||
ulongtobuf(p, rec->r.ver.created); p += 4;
|
ulongtobuf(p, rec->r.ver.created); p += 4;
|
||||||
ulongtobuf(p, rec->r.ver.nextcheck); p += 4;
|
ulongtobuf(p, rec->r.ver.nextcheck); p += 4;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user