]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Don't check for file presence on inline files
authorDavid Sommerseth <davids@redhat.com>
Mon, 16 Jan 2012 11:00:33 +0000 (12:00 +0100)
committerDavid Sommerseth <davids@redhat.com>
Mon, 16 Jan 2012 11:13:28 +0000 (12:13 +0100)
commit06e781f885125b05de0a731743acd90d4492a435
treec94156ed64fffac210e62445dd8cfa0a91348da9
parentcb383dc3bc161c1e4ea6b535097e0f64a725e081
Don't check for file presence on inline files

The configuration file supports inline files for --ca, --cert, --dh,
--extra-certs, --key, --pkcs12, --secret and --tls-auth.  When this
is used, the filename is set to [[INLINE]] (defined by INLINE_FILE_TAG).

If the filename is set to INLINE_FILE_TAG for these options, don't
call check_file_access().

[v2 Simplify the code, using a flag to check_file_access()]

Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
options.c