ENGINE-42 #comment define for pEp protocol version already existed, just wasn't being used in decorate_message #close fixed by replacing constant with define
authorKrista Grothoff <krista@pep-project.org>
Fri, 29 Jul 2016 17:32:16 +0200
changeset 9426365f5d5f612
parent 941 0bb60c4a805b
child 950 79244fc25166
child 956 132711e18e0f
ENGINE-42 #comment define for pEp protocol version already existed, just wasn't being used in decorate_message #close fixed by replacing constant with define
src/message_api.c
src/pEpEngine.h
     1.1 --- a/src/message_api.c	Fri Jul 29 15:48:06 2016 +0200
     1.2 +++ b/src/message_api.c	Fri Jul 29 17:32:16 2016 +0200
     1.3 @@ -641,7 +641,7 @@
     1.4  {
     1.5      assert(msg);
     1.6  
     1.7 -    add_opt_field(msg, "X-pEp-Version", "1.0");
     1.8 +    add_opt_field(msg, "X-pEp-Version", PEP_VERSION);
     1.9      
    1.10      if (color != PEP_rating_undefined)
    1.11          add_opt_field(msg, "X-EncStatus", color_to_string(color));
     2.1 --- a/src/pEpEngine.h	Fri Jul 29 15:48:06 2016 +0200
     2.2 +++ b/src/pEpEngine.h	Fri Jul 29 17:32:16 2016 +0200
     2.3 @@ -12,7 +12,7 @@
     2.4  #include "stringlist.h"
     2.5  #include "timestamp.h"
     2.6  
     2.7 -#define PEP_VERSION "1.0"
     2.8 +#define PEP_VERSION "1.0" // protocol version
     2.9  
    2.10  #define PEP_OWN_USERID "pEp_own_userId"
    2.11