summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/authenticator.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/protocol/authenticator.h')
-rw-r--r--remoting/protocol/authenticator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/remoting/protocol/authenticator.h b/remoting/protocol/authenticator.h
index 28288e5..1210989 100644
--- a/remoting/protocol/authenticator.h
+++ b/remoting/protocol/authenticator.h
@@ -89,6 +89,11 @@ class Authenticator {
// Returns current state of the authenticator.
virtual State state() const = 0;
+ // Returns whether authentication has started. The chromoting host uses this
+ // method to starts the back off process to prevent malicious clients from
+ // guessing the PIN by spamming the host with auth requests.
+ virtual bool started() const = 0;
+
// Returns rejection reason. Can be called only when in REJECTED state.
virtual RejectionReason rejection_reason() const = 0;