aboutsummaryrefslogtreecommitdiff
path: root/src/cryptoidentity.hpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-20 00:17:05 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-20 00:17:05 +0200
commit07bc3475f893430a59f91f65ea50d87ba21b5854 (patch)
treec86518df1b239ee4810c654d1049d4bfc52cb41d /src/cryptoidentity.hpp
parentefab40bf8d0fc71237bb80d4a786bcd6b1752d72 (diff)
downloadkristall-07bc3475f893430a59f91f65ea50d87ba21b5854.tar.gz
Patches by @tomasino, starts to implement the auto-enable/host filter feature for client certificates.
Diffstat (limited to 'src/cryptoidentity.hpp')
-rw-r--r--src/cryptoidentity.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cryptoidentity.hpp b/src/cryptoidentity.hpp
index 09e9489..b693427 100644
--- a/src/cryptoidentity.hpp
+++ b/src/cryptoidentity.hpp
@@ -25,6 +25,13 @@ struct CryptoIdentity
//! True for long-lived identities
bool is_persistent = false;
+ //! If not empty, Kristall will check
+ QString host_filter = "";
+
+ //! When this is set to true and the host_filter is not empty,
+ //! the certificate will be automatically enabled for hosts matching the filter.
+ bool auto_enable = false;
+
bool isValid() const {
return (not this->certificate.isNull()) and (not this->private_key.isNull());
}