Stared at the code - it's "just moving code", though the part about
"where does the KS_AUTH_DEFERRED come from?" needs a bit more digging.

The new code is slightly ugly - it's the old if/else deep nesting 
style, with early returns intermixed (but keeping the old else branch,
so "yes, same code" is easier to see).  A followup patch might want to
refactor this to "consistent early return style".


Tested on the server side test rig (all OK), including deferred auth
by plugin and by script.

I have adjusted the "now >= ks->auth_deferred_expire" clause as 
instructed and agreed on IRC, and killed a blank line.

Your patch has been applied to the master branch.

commit e55bedd4ea435f95d288e60691abc6e53b8bf014
Author: Arne Schwabe
Date:   Thu May 20 17:11:44 2021 +0200

     Extracting key_state deferred auth status update into function

     Signed-off-by: Arne Schwabe <a...@rfc2549.org>
     Acked-by: Antonio Quartulli <anto...@openvpn.net>
     Message-Id: <20210520151148.2565578-5-a...@rfc2549.org>
     URL: 
https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22420.html
     Signed-off-by: Gert Doering <g...@greenie.muc.de>


--
kind regards,

Gert Doering



_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to