only what is yellow can be green
authorVolker Birk <vb@pep-project.org>
Mon, 28 Sep 2015 14:23:24 +0200
changeset 3568c870c0d0d1d
parent 355 d12fe5ea49e0
child 357 9b796d54b0ea
only what is yellow can be green

MISSING FEATURE: S/MIME has to be handled depending on trusted CAs
src/keymanagement.c
     1.1 --- a/src/keymanagement.c	Mon Sep 28 11:08:59 2015 +0200
     1.2 +++ b/src/keymanagement.c	Mon Sep 28 14:23:24 2015 +0200
     1.3 @@ -354,9 +354,15 @@
     1.4      if (status != PEP_STATUS_OK)
     1.5          return status;
     1.6  
     1.7 -    ident->comm_type |= PEP_ct_confirmed;
     1.8 +    if (ident->comm_type > PEP_ct_strong_but_unconfirmed) {
     1.9 +        ident->comm_type |= PEP_ct_confirmed;
    1.10 +        status = update_identity(session, ident);
    1.11 +    }
    1.12 +    else {
    1.13 +        // MISSING: S/MIME has to be handled depending on trusted CAs
    1.14 +        status = PEP_ILLEGAL_VALUE;
    1.15 +    }
    1.16  
    1.17 -    status = update_identity(session, ident);
    1.18      return status;
    1.19  }
    1.20