diff --git a/Makefile.conf b/Makefile.conf index 658919e..ad57f57 100644 --- a/Makefile.conf +++ b/Makefile.conf @@ -1,5 +1,5 @@ # Copyright 2018, pEp Foundation -# This file is part of lib pEp Adapter +# This file is part of libpEpAdapter # This file may be used under the terms of the GNU General Public License version 3 # see LICENSE.txt diff --git a/test/framework.cc b/test/framework.cc index 99cb9b4..70bb0a1 100644 --- a/test/framework.cc +++ b/test/framework.cc @@ -1,5 +1,7 @@ -#include "framework.hh" +// This file is under GNU General Public License 3.0 +// see LICENSE.txt +#include "framework.hh" #include #include #include @@ -83,7 +85,10 @@ namespace pEp { ifstream f(filename, ifstream::in); string key{ istreambuf_iterator(f), istreambuf_iterator() }; ::identity_list *il = NULL; + cout << key.c_str() << endl; + cout << key.length() << endl; ::PEP_STATUS status = ::import_key(session(), key.c_str(), key.length(), &il); + throw_status(status); assert(status == PEP_KEY_IMPORTED); ::free_identity_list(il); } diff --git a/test/framework.hh b/test/framework.hh index 2f3b97a..9b04a6b 100644 --- a/test/framework.hh +++ b/test/framework.hh @@ -1,5 +1,6 @@ // This file is under GNU General Public License 3.0 // see LICENSE.txt + #ifndef LIBPEPADAPTER_FRAMEWORK_HH #define LIBPEPADAPTER_FRAMEWORK_HH diff --git a/test/test_ensure_passphrase.cc b/test/test_ensure_passphrase.cc index d00ea8f..a4cfa9f 100644 --- a/test/test_ensure_passphrase.cc +++ b/test/test_ensure_passphrase.cc @@ -1,3 +1,6 @@ +// This file is under GNU General Public License 3.0 +// see LICENSE.txt + #include #include #include diff --git a/test/test_leave_device_group.cc b/test/test_leave_device_group.cc index 2e7fb97..33bdac5 100644 --- a/test/test_leave_device_group.cc +++ b/test/test_leave_device_group.cc @@ -1,3 +1,6 @@ +// This file is under GNU General Public License 3.0 +// see LICENSE.txt + #include #include #include diff --git a/test/test_library.cc b/test/test_library.cc index 522279a..900772c 100644 --- a/test/test_library.cc +++ b/test/test_library.cc @@ -1,3 +1,6 @@ +// This file is under GNU General Public License 3.0 +// see LICENSE.txt + #include "pc_container.hh" #include #include diff --git a/test/test_message_cache.cc b/test/test_message_cache.cc index e5d1243..a7d275a 100644 --- a/test/test_message_cache.cc +++ b/test/test_message_cache.cc @@ -1,3 +1,6 @@ +// This file is under GNU General Public License 3.0 +// see LICENSE.txt + #include "framework.hh" #include #include diff --git a/test/test_passphrase_cache.cc b/test/test_passphrase_cache.cc index 3de8a11..32ca34e 100644 --- a/test/test_passphrase_cache.cc +++ b/test/test_passphrase_cache.cc @@ -1,3 +1,6 @@ +// This file is under GNU General Public License 3.0 +// see LICENSE.txt + #include "framework.hh" #include diff --git a/test/test_semaphore.cc b/test/test_semaphore.cc index 658f2c3..55196b6 100644 --- a/test/test_semaphore.cc +++ b/test/test_semaphore.cc @@ -1,3 +1,6 @@ +// This file is under GNU General Public License 3.0 +// see LICENSE.txt + #include #include #include