ENGINE-3 non-encrypted messages (i.e. first message in handshake) was never being decorated.
authorEdouard Tisserant <edouard@pep-project.org>
Thu, 29 Jun 2017 16:16:12 +0200
changeset 189977889e14ac3e
parent 1895 fcafaecea8b6
child 1901 eabedbfc80e6
child 1903 c2a9a756b1f5
child 1904 9343c436f6c4
child 1906 104b801dc351
child 1908 627b7b3bd01e
child 1909 678ea53d9e94
ENGINE-3 non-encrypted messages (i.e. first message in handshake) was never being decorated.
src/message_api.c
     1.1 --- a/src/message_api.c	Wed Jun 28 13:16:48 2017 +0200
     1.2 +++ b/src/message_api.c	Thu Jun 29 16:16:12 2017 +0200
     1.3 @@ -1213,8 +1213,11 @@
     1.4                  PEP_rating_undefined) < PEP_rating_reliable)
     1.5      {
     1.6          free_stringlist(keys);
     1.7 -        if (!session->passive_mode && !(flags & PEP_encrypt_flag_force_no_attached_key))
     1.8 +        if (!session->passive_mode && 
     1.9 +            !(flags & PEP_encrypt_flag_force_no_attached_key)) {
    1.10              attach_own_key(session, src);
    1.11 +            decorate_message(src, PEP_rating_undefined, NULL);
    1.12 +        }
    1.13          return ADD_TO_LOG(PEP_UNENCRYPTED);
    1.14      }
    1.15      else {