aboutsummaryrefslogtreecommitdiff
path: root/src/cryptoidentity.hpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-20 00:42:46 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-20 00:42:46 +0200
commitcf3b60ea29526417a35734a4ae4f5a7b0d5560d5 (patch)
tree1ff3846f2b10ddce0e883adf41ba35f7139945af /src/cryptoidentity.hpp
parentbdfd6ba6874ca1a7bcfa4ed075e686bfd119dc7e (diff)
downloadkristall-cf3b60ea29526417a35734a4ae4f5a7b0d5560d5.tar.gz
Adds new feature: Auto-enable and host matching for client certificates
Diffstat (limited to 'src/cryptoidentity.hpp')
-rw-r--r--src/cryptoidentity.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptoidentity.hpp b/src/cryptoidentity.hpp
index b693427..9c35cd0 100644
--- a/src/cryptoidentity.hpp
+++ b/src/cryptoidentity.hpp
@@ -35,6 +35,12 @@ struct CryptoIdentity
bool isValid() const {
return (not this->certificate.isNull()) and (not this->private_key.isNull());
}
+
+ //! returns true if a host does not match the filter criterion
+ bool isHostFiltered(QUrl const & url) const;
+
+ //! returns true when the identity should be enabled on url
+ bool isAutomaticallyEnabledOn(QUrl const & url) const;
};
#endif // CRYPTOIDENTITIY_HPP