aboutsummaryrefslogtreecommitdiffstats
path: root/src/wireguard/handshake/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wireguard/handshake/types.rs')
-rw-r--r--src/wireguard/handshake/types.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wireguard/handshake/types.rs b/src/wireguard/handshake/types.rs
index ed2fcbb..ea827b0 100644
--- a/src/wireguard/handshake/types.rs
+++ b/src/wireguard/handshake/types.rs
@@ -40,6 +40,7 @@ pub enum HandshakeError {
UnknownPublicKey,
UnknownReceiverId,
InvalidMessageFormat,
+ InvalidSharedSecret,
OldTimestamp,
InvalidState,
InvalidMac1,
@@ -50,6 +51,7 @@ pub enum HandshakeError {
impl fmt::Display for HandshakeError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
+ HandshakeError::InvalidSharedSecret => write!(f, "Zero shared secret"),
HandshakeError::DecryptionFailure => write!(f, "Failed to AEAD:OPEN"),
HandshakeError::UnknownPublicKey => write!(f, "Unknown public key"),
HandshakeError::UnknownReceiverId => {