diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-20 00:17:05 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-20 00:17:05 +0200 |
| commit | 07bc3475f893430a59f91f65ea50d87ba21b5854 (patch) | |
| tree | c86518df1b239ee4810c654d1049d4bfc52cb41d /src/cryptoidentity.hpp | |
| parent | efab40bf8d0fc71237bb80d4a786bcd6b1752d72 (diff) | |
| download | kristall-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.hpp | 7 |
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()); } |
