aboutsummaryrefslogtreecommitdiff
path: root/src/cryptoidentity.hpp
diff options
context:
space:
mode:
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());
}