src/keymanagement.c
branchenigmail_tests_pre_revision_2535
changeset 2542 b7f6df848795
parent 2538 be573c5f4782
     1.1 --- a/src/keymanagement.c	Sat Feb 24 19:12:11 2018 +0100
     1.2 +++ b/src/keymanagement.c	Sat Feb 24 21:44:46 2018 +0100
     1.3 @@ -136,6 +136,22 @@
     1.4          ident->comm_type = ct;
     1.5      }
     1.6      
     1.7 +    bool pep_user = false;
     1.8 +    
     1.9 +    is_pep_user(session, ident, &pep_user);
    1.10 +
    1.11 +    if (pep_user) {
    1.12 +        switch (ct) {
    1.13 +            case PEP_ct_OpenPGP:
    1.14 +            case PEP_ct_OpenPGP_unconfirmed:
    1.15 +                ct += 0x47; // difference between PEP and OpenPGP values;
    1.16 +                ident->comm_type = ct;
    1.17 +                break;
    1.18 +            default:
    1.19 +                break;
    1.20 +        }
    1.21 +    }
    1.22 +    
    1.23      bool revoked, expired;
    1.24      bool blacklisted = false;
    1.25