mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-23 10:29:58 +01:00
Fixed lsign using v3 problem
This commit is contained in:
parent
6732700743
commit
a5ed3e6925
@ -1,3 +1,8 @@
|
||||
2001-07-27 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* keyedit.c (sign_uids): Check that we are not trying to to a
|
||||
lsign with a pre-v4 key. Bug noticed by Thomas Roessler.
|
||||
|
||||
2001-07-26 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* parse-packet.c (parse_photo_id): Reset all variables.
|
||||
|
@ -282,6 +282,17 @@ sign_uids( KBNODE keyblock, STRLIST locusr, int *ret_modified, int local )
|
||||
if( rc )
|
||||
goto leave;
|
||||
|
||||
if (local) {
|
||||
for( sk_rover = sk_list; sk_rover; sk_rover = sk_rover->next ) {
|
||||
if (sk_rover->sk->version < 4) {
|
||||
tty_printf ("Local only signing not possible "
|
||||
"due to an old style key\n");
|
||||
rc = G10ERR_UNU_SECKEY;
|
||||
goto leave;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* loop over all signaturs */
|
||||
for( sk_rover = sk_list; sk_rover; sk_rover = sk_rover->next ) {
|
||||
u32 sk_keyid[2];
|
||||
|
Loading…
x
Reference in New Issue
Block a user