Date: Thu, 15 Sep 2022 16:19:04 +0200 From: Frank Lichtenheld Message-ID: References: <20220824093723.64618-1-arne@...1227...> <20220914172527.2661529-1-arne@...1227...> MIME-Version: 1.0 In-Reply-To: <20220914172527.2661529-1-arne@...1227...> Subject: Re: [Openvpn-devel] [PATCH v3] Improve data key id not found error message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit Content-Disposition: inline To: Arne Schwabe Cc: openvpn-devel@lists.sourceforge.net On Wed, Sep 14, 2022 at 07:25:27PM +0200, Arne Schwabe wrote: > With delayed data key generation now with deferred auth, NCP and similar > mechanism the "TLS Error: local/remote TLS keys are out of sync" is shown > much too frequent and confuses a lot of people. > > This also removes the dead code of printing multi not ready keys and > replace it with an assert. > > Factor out printing of error messages into an extra function to make > the code easier to understand and also to only call into that function > in the case that a key is not found and avoid the overhead. > > Patch v2: fix comparing key_id to state value, improve message > Patch v3: also take key_id into account Code looks good to me now. Is there any way of testing this? Regards, -- Frank Lichtenheld