27#ifndef INTERRUPTCHANNELHANDSHAKE_H
28#define INTERRUPTCHANNELHANDSHAKE_H
57 State
Feed(
const char *data, std::size_t length);
58 State GetState()
const {
return m_state; }
62 static bool ConstantTimeEqual(
const std::string &a,
const std::string &b);
65 std::string m_received;
66 State m_state = State::pending;
@ accepted
The line carries the secret wxMaxima passed in MAXIMA_AUTH_CODE.
@ rejected
There is an auth= line, but with something else than the secret.
Checks the first line a would-be interrupt channel sends.
Definition: InterruptChannelHandshake.h:46
State Feed(const char *data, std::size_t length)
Processes the next length bytes the connection sent.
Definition: InterruptChannelHandshake.cpp:38