1
0
Fork 0
forked from blue/squawk

work progress: trust manager. DOESN'T START!

This commit is contained in:
Blue 2022-12-19 18:43:24 +03:00
parent 0b61b6e928
commit db3bc358a7
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
20 changed files with 634 additions and 55 deletions

View file

@ -124,5 +124,25 @@ enum class Support {
};
Q_ENUM_NS(Support)
enum class TrustLevel {
/// The key's trust is not decided.
Undecided,
/// The key is automatically distrusted (e.g., by the security policy TOAKAFA).
/// \see SecurityPolicy
AutomaticallyDistrusted,
/// The key is manually distrusted (e.g., by clicking a button or \xep{0450, Automatic Trust
/// Management (ATM)}).
ManuallyDistrusted,
/// The key is automatically trusted (e.g., by the client for all keys of a bare JID until one
/// of it is authenticated).
AutomaticallyTrusted,
/// The key is manually trusted (e.g., by clicking a button).
ManuallyTrusted,
/// The key is authenticated (e.g., by QR code scanning or \xep{0450, Automatic Trust
/// Management (ATM)}).
Authenticated
};
Q_ENUM_NS(TrustLevel)
}
#endif // SHARED_ENUMS_H