Fix 'unreliable' rating when message's signer's fpr isn't trusted - should now be 'reliable' keysync
authorEdouard Tisserant <edouard@pep-project.org>
Fri, 09 Sep 2016 19:40:16 +0200
branchkeysync
changeset 1154cce44a694981
parent 1152 fde1a69448d2
child 1155 172cc6ca6648
Fix 'unreliable' rating when message's signer's fpr isn't trusted - should now be 'reliable'
src/message_api.c
     1.1 --- a/src/message_api.c	Thu Sep 08 16:40:20 2016 +0200
     1.2 +++ b/src/message_api.c	Fri Sep 09 19:40:16 2016 +0200
     1.3 @@ -827,7 +827,8 @@
     1.4              if (status != PEP_STATUS_OK)
     1.5                  return PEP_rating_undefined;
     1.6              if (ct == PEP_ct_unknown)
     1.7 -                rating = PEP_rating_unencrypted_for_some;
     1.8 +                if (rating >= PEP_rating_reliable)
     1.9 +                    rating = PEP_rating_reliable;
    1.10              else
    1.11                  rating = _rating(ct, rating);
    1.12          }