]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix tls-auth/crypt in connection blocks with --persist-key
authorSteffan Karger <steffan@karger.me>
Sat, 19 Jan 2019 10:34:00 +0000 (11:34 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 22 Jan 2019 16:32:03 +0000 (17:32 +0100)
commitdcfc51457789d8a62ff8bd266dd3a3bf0a0c9763
tree93537923dae8544f6d42c159a1b824475e852eff
parenteb1fed3f3bb817332183672dd1ca665ece83d6a8
Fix tls-auth/crypt in connection blocks with --persist-key

If --persist-key was used, we would always try to pre-load the 'global'
tls-auth/crypt file. That would result in using the wrong key (leading
to a failed connection) or en error is there was to 'global' key:

  Sat Jan 19 11:09:01 2019 Cannot pre-load tls-auth keyfile ((null))
  Sat Jan 19 11:09:01 2019 Exiting due to fatal error

Fix that by loading loading the key from the current connection entry.

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20190119103400.12887-1-steffan@karger.me>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18123.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c