Type Definition gnunet_sys::GNUNET_CORE_KxState[][src]

type GNUNET_CORE_KxState = c_uint;

State machine for our P2P encryption handshake. Everyone starts in #GNUNET_CORE_KX_STATE_DOWN, if we receive the other peer’s key (other peer initiated) we start in state #GNUNET_CORE_KX_STATE_KEY_RECEIVED (since we will immediately send our own); otherwise we start in #GNUNET_CORE_KX_STATE_KEY_SENT. If we get back a PONG from within either state, we move up to #GNUNET_CORE_KX_STATE_UP (the PONG will always be sent back encrypted with the key we sent to the other peer). Eventually, we will try to rekey, for this we will enter #GNUNET_CORE_KX_STATE_REKEY_SENT until the rekey operation is confirmed by a PONG from the other peer.