From a5ac2c5b2965be8fc90d5b4a5f17f5cecc7fa485 Mon Sep 17 00:00:00 2001 From: Nate Brown Date: Fri, 4 Aug 2023 14:14:44 -0500 Subject: [PATCH] Combine ca, cert, and key handling --- connection_state.go | 1 - 1 file changed, 1 deletion(-) diff --git a/connection_state.go b/connection_state.go index 52607496e..edf20af7b 100644 --- a/connection_state.go +++ b/connection_state.go @@ -30,7 +30,6 @@ type ConnectionState struct { func NewConnectionState(l *logrus.Logger, cipher string, certState *CertState, initiator bool, pattern noise.HandshakePattern, psk []byte, pskStage int) *ConnectionState { var dhFunc noise.DHFunc - switch certState.Certificate.Details.Curve { case cert.Curve_CURVE25519: dhFunc = noise.DH25519