13#ifndef OPENVPN_SSL_DATALIMIT_H
14#define OPENVPN_SSL_DATALIMIT_H
112 const unsigned int mask = 1 << ((int(state) - 1) + (
int(mode) << 1));
116 if ((mask & (ER | DG)) && ((
flags & (ER | DG)) == (ER | DG)))
144 if (newstate >
state)
189 throw Exception(
"DataLimit::Component: unknown mode");
State add(const size_type n)
Component(const size_type red_limit_arg)
State update_state(const State newstate)
const size_type red_limit
State transition(State s) const
State elgible(const Mode mode, const State state)
State add(const Mode mode, const size_type n)
DataLimit(const Parameters &p)
State update_state(const Mode mode, const State newstate)
static const char * mode_str(const Mode m)
static const char * state_str(const State s)
Component & component(const Mode m)
size_type decrypt_red_limit
size_type encrypt_red_limit