merging keysync
authorVolker Birk <vb@pep.foundation>
Tue, 16 Aug 2016 19:20:20 +0200
branchkeysync
changeset 1026ed301012d546
parent 1025 484c6671be0f
parent 1024 fc8ac1e60c3c
child 1038 18afd03aedf4
child 1043 f786ee22e281
merging
     1.1 --- a/src/pEpEngine.c	Tue Aug 16 19:19:53 2016 +0200
     1.2 +++ b/src/pEpEngine.c	Tue Aug 16 19:20:20 2016 +0200
     1.3 @@ -1829,6 +1829,11 @@
     1.4              created);
     1.5  }
     1.6  
     1.7 +DYNAMIC_API const char* get_engine_version() {
     1.8 +    return PEP_ENGINE_VERSION;
     1.9 +}
    1.10 +
    1.11 +
    1.12  DYNAMIC_API PEP_STATUS reset_peptest_hack(PEP_SESSION session)
    1.13  {
    1.14      assert(session);
     2.1 --- a/src/pEpEngine.h	Tue Aug 16 19:19:53 2016 +0200
     2.2 +++ b/src/pEpEngine.h	Tue Aug 16 19:20:20 2016 +0200
     2.3 @@ -915,6 +915,15 @@
     2.4      );
     2.5  
     2.6  
     2.7 +// get_engine_version() - returns the current version of pEpEngine (this is different
     2.8 +//                        from the pEp protocol version!)
     2.9 +//
    2.10 +//  parameters: none
    2.11 +//
    2.12 +//  return_value: const char* to the engine version string constant
    2.13 +//
    2.14 +DYNAMIC_API const char* get_engine_version();
    2.15 +
    2.16  DYNAMIC_API PEP_STATUS reset_peptest_hack(PEP_SESSION session);
    2.17  
    2.18  #ifdef __cplusplus
     3.1 --- a/test/pEpEngineTest.cc	Tue Aug 16 19:19:53 2016 +0200
     3.2 +++ b/test/pEpEngineTest.cc	Tue Aug 16 19:20:20 2016 +0200
     3.3 @@ -285,6 +285,8 @@
     3.4      assert(tcomm_type == PEP_ct_OpenPGP_unconfirmed);
     3.5      
     3.6      cout << "\ncalling release()\n";
     3.7 +    cout << endl << "End of pEpEngineTest for engine version " << get_engine_version() << endl;
     3.8 +
     3.9      release(session);
    3.10      return 0;
    3.11  }