1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-05-31 22:18:03 +02:00

* pkclist.c (build_pk_list): Add new status code to indicate an untrusted

user.  This (or a disabled key) fail with "unavailable pubkey"
(G10ERR_UNU_PUBKEY).
This commit is contained in:
David Shaw 2002-08-30 19:21:55 +00:00
parent c721e11bf5
commit 46a58a0527
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2002-08-30 David Shaw <dshaw@jabberwocky.com> 2002-08-30 David Shaw <dshaw@jabberwocky.com>
* pkclist.c (build_pk_list): Add new status code to indicate an
untrusted user. This (or a disabled key) fail with "unavailable
pubkey" (G10ERR_UNU_PUBKEY).
* pkclist.c (build_pk_list): Fail if any recipient keys are * pkclist.c (build_pk_list): Fail if any recipient keys are
unusable. unusable.

View File

@ -961,6 +961,7 @@ build_pk_list( STRLIST rcpts, PK_LIST *ret_pk_list, unsigned use )
remusr->d, remusr->d,
strlen (remusr->d), strlen (remusr->d),
-1); -1);
rc=G10ERR_UNU_PUBKEY;
goto fail; goto fail;
} }
else if( do_we_trust_pre( pk, trustlevel ) ) { else if( do_we_trust_pre( pk, trustlevel ) ) {
@ -988,10 +989,11 @@ build_pk_list( STRLIST rcpts, PK_LIST *ret_pk_list, unsigned use )
} }
else { /* we don't trust this pk */ else { /* we don't trust this pk */
free_public_key( pk ); pk = NULL; free_public_key( pk ); pk = NULL;
write_status_text_and_buffer (STATUS_INV_RECP, "0 ", write_status_text_and_buffer (STATUS_INV_RECP, "10 ",
remusr->d, remusr->d,
strlen (remusr->d), strlen (remusr->d),
-1); -1);
rc=G10ERR_UNU_PUBKEY;
goto fail; goto fail;
} }
} }