diff options
author | Christian Kieschnick <christian.kieschnick@hicknhack-software.com> | 2018-10-01 17:26:24 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2018-10-01 17:39:37 +0300 |
commit | eca9c658f4d0a8e956d49ce2e9eea81704e1de9b (patch) | |
tree | f49da9147abee9a96a0acce17548233a988b1f34 /tests/TestSharing.h | |
parent | c1e9f45df9f21b7697241037643770a2862bb7ef (diff) |
Add sharing of groups between databases
* Add source folder keeshare for sharing with corresponding define WITH_XC_KEESHARE
* Move common crypto parts to src/crypto/ssh
* Extended OpenSSHKey
* Move filewatching to own file (currently in two related classes DelayedFileWatcher and BulkFileWatcher)
* Small improvements for style and code in several classes
* Sharing is secured using RSA-Keys which are generated on demand
* Publisher signs the container using their private key
* Client can verify the signed container and choose to decline an import,
import only once or trust the publisher and automatically import all
data of this source henceforth
* Integration of settings into Group-Settings, Database-Settings and Application-Settings
* Introduced dependency QuaZip as dependency to allow combined export of
key container and the (custom format) certificate
Diffstat (limited to 'tests/TestSharing.h')
-rw-r--r-- | tests/TestSharing.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/TestSharing.h b/tests/TestSharing.h new file mode 100644 index 000000000..ebf85fd4e --- /dev/null +++ b/tests/TestSharing.h @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2018 KeePassXC Team <team@keepassxc.org> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 or (at your option) + * version 3 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef KEEPASSXC_TESTSHARING_H +#define KEEPASSXC_TESTSHARING_H + +#include <QObject> +#include <QSharedPointer> + +class OpenSSHKey; + +class TestSharing : public QObject +{ + Q_OBJECT + +private slots: + void initTestCase(); + void cleanupTestCase(); + void testIdempotentDatabaseWriting(); + void testNullObjects(); + void testCertificateSerialization(); + void testCertificateSerialization_data(); + void testKeySerialization(); + void testReferenceSerialization(); + void testReferenceSerialization_data(); + void testSettingsSerialization(); + void testSettingsSerialization_data(); + +private: + const OpenSSHKey& stubkey(int iIndex = 0); +}; + +#endif // KEEPASSXC_TESTSHARING_H |