wlan_rsn/key/exchange/handshake/mod.rs
1// Copyright 2018 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5pub mod fourway;
6pub mod group_key;
7
8// This enum is primarily used for identifying the
9// origin of different `wlan_rsn::Error`s.
10#[derive(Debug)]
11pub enum HandshakeMessageNumber {
12 FourwayMessageNumber(fourway::MessageNumber),
13}
14
15impl From<fourway::MessageNumber> for HandshakeMessageNumber {
16 fn from(e: fourway::MessageNumber) -> Self {
17 HandshakeMessageNumber::FourwayMessageNumber(e)
18 }
19}