diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-20 00:42:46 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-20 00:42:46 +0200 |
| commit | cf3b60ea29526417a35734a4ae4f5a7b0d5560d5 (patch) | |
| tree | 1ff3846f2b10ddce0e883adf41ba35f7139945af /src/identitycollection.cpp | |
| parent | bdfd6ba6874ca1a7bcfa4ed075e686bfd119dc7e (diff) | |
| download | kristall-cf3b60ea29526417a35734a4ae4f5a7b0d5560d5.tar.gz | |
Adds new feature: Auto-enable and host matching for client certificates
Diffstat (limited to 'src/identitycollection.cpp')
| -rw-r--r-- | src/identitycollection.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/identitycollection.cpp b/src/identitycollection.cpp index 2590cdf..1a39e76 100644 --- a/src/identitycollection.cpp +++ b/src/identitycollection.cpp @@ -244,6 +244,21 @@ bool IdentityCollection::deleteGroup(const QString &group_name) return false; } +QVector<const CryptoIdentity *> IdentityCollection::allIdentities() const +{ + QVector<const CryptoIdentity *> identities; + + for(auto const & group : this->root.children) + { + for(auto const & ident : group->children) + { + identities.append(&ident->as<IdentityNode>().identity); + } + } + + return identities; +} + QModelIndex IdentityCollection::index(int row, int column, const QModelIndex &parent) const { if (not hasIndex(row, column, parent)) |
