1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-10 21:38:50 +01:00

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 <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-07-15 12:12:34 +02:00
parent 12a887050a
commit d21efa3988

View File

@ -508,6 +508,9 @@ do_we_trust_pre( PKT_public_key *pk, unsigned int trustlevel )
static void static void
write_trust_status (int statuscode, int trustlevel) write_trust_status (int statuscode, int trustlevel)
{ {
#ifdef NO_TRUST_MODELS
write_status (statuscode);
#else /* NO_TRUST_MODELS */
int tm; int tm;
/* For the combined tofu+pgp method, we return the trust model which /* For the combined tofu+pgp method, we return the trust model which
@ -517,6 +520,7 @@ write_trust_status (int statuscode, int trustlevel)
else else
tm = opt.trust_model; tm = opt.trust_model;
write_status_strings (statuscode, "0 ", trust_model_string (tm), NULL); write_status_strings (statuscode, "0 ", trust_model_string (tm), NULL);
#endif /* NO_TRUST_MODELS */
} }