aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-08-30 19:21:55 +0000
committerDavid Shaw <[email protected]>2002-08-30 19:21:55 +0000
commit46a58a0527b56e2480638c61596a0ae0b5f253a0 (patch)
treea324dbf4fe42dff82cbde5f16f6df6d0d8275ce2
parent* pkclist.c (build_pk_list): Fail if any recipient keys are unusable. (diff)
downloadgnupg-46a58a0527b56e2480638c61596a0ae0b5f253a0.tar.gz
gnupg-46a58a0527b56e2480638c61596a0ae0b5f253a0.zip
* 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).
Diffstat (limited to '')
-rw-r--r--g10/ChangeLog4
-rw-r--r--g10/pkclist.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index ed418cf81..a340147ca 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,5 +1,9 @@
2002-08-30 David Shaw <[email protected]>
+ * 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
unusable.
diff --git a/g10/pkclist.c b/g10/pkclist.c
index 040db11ba..5bb5446d6 100644
--- a/g10/pkclist.c
+++ b/g10/pkclist.c
@@ -961,6 +961,7 @@ build_pk_list( STRLIST rcpts, PK_LIST *ret_pk_list, unsigned use )
remusr->d,
strlen (remusr->d),
-1);
+ rc=G10ERR_UNU_PUBKEY;
goto fail;
}
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 */
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,
strlen (remusr->d),
-1);
+ rc=G10ERR_UNU_PUBKEY;
goto fail;
}
}