1.1 --- a/src/pEpEngine.c Mon Aug 15 13:37:11 2016 +0200
1.2 +++ b/src/pEpEngine.c Mon Aug 15 18:06:31 2016 +0200
1.3 @@ -1758,6 +1758,11 @@
1.4 return status;
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 Mon Aug 15 13:37:11 2016 +0200
2.2 +++ b/src/pEpEngine.h Mon Aug 15 18:06:31 2016 +0200
2.3 @@ -900,6 +900,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 Mon Aug 15 13:37:11 2016 +0200
3.2 +++ b/test/pEpEngineTest.cc Mon Aug 15 18:06:31 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 }