From cf3b60ea29526417a35734a4ae4f5a7b0d5560d5 Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Sat, 20 Jun 2020 00:42:46 +0200 Subject: Adds new feature: Auto-enable and host matching for client certificates --- src/identitycollection.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/identitycollection.cpp') 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 IdentityCollection::allIdentities() const +{ + QVector identities; + + for(auto const & group : this->root.children) + { + for(auto const & ident : group->children) + { + identities.append(&ident->as().identity); + } + } + + return identities; +} + QModelIndex IdentityCollection::index(int row, int column, const QModelIndex &parent) const { if (not hasIndex(row, column, parent)) -- cgit v1.2.3