diff options
author | Justus Winter <[email protected]> | 2016-07-15 10:12:34 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-07-15 10:35:08 +0000 |
commit | d21efa398874be4a15e8283c5fc382fb90f562fd (patch) | |
tree | fdc5926f3b8aa7777434221b016fae5e0a43868d | |
parent | tests: Check for gpgtar. (diff) | |
download | gnupg-d21efa398874be4a15e8283c5fc382fb90f562fd.tar.gz gnupg-d21efa398874be4a15e8283c5fc382fb90f562fd.zip |
g10: Fix building without trust models.
* g10/pkclist.c (write_trust_status): Fall back to the previous
behavior.
Fixes-commit: ae188932
Signed-off-by: Justus Winter <[email protected]>
-rw-r--r-- | g10/pkclist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/pkclist.c b/g10/pkclist.c index 6315a6d55..63d32d1e4 100644 --- a/g10/pkclist.c +++ b/g10/pkclist.c @@ -508,6 +508,9 @@ do_we_trust_pre( PKT_public_key *pk, unsigned int trustlevel ) static void write_trust_status (int statuscode, int trustlevel) { +#ifdef NO_TRUST_MODELS + write_status (statuscode); +#else /* NO_TRUST_MODELS */ int tm; /* For the combined tofu+pgp method, we return the trust model which @@ -517,6 +520,7 @@ write_trust_status (int statuscode, int trustlevel) else tm = opt.trust_model; write_status_strings (statuscode, "0 ", trust_model_string (tm), NULL); +#endif /* NO_TRUST_MODELS */ } |