]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Check --ncp-ciphers list on startup
authorSteffan Karger <steffan@karger.me>
Wed, 12 Oct 2016 07:32:49 +0000 (09:32 +0200)
committerDavid Sommerseth <davids@openvpn.net>
Thu, 13 Oct 2016 15:23:20 +0000 (17:23 +0200)
commitdc4fa3c4656b92aff3f26d4134c509410add142e
tree2789363d06c5dff789c497d51cf9cad4c929e66f
parent396d30c264e6cb6b9f57c3e566f3b71879999662
Check --ncp-ciphers list on startup

Currently, if --ncp-ciphers contains an invalid cipher, OpenVPN will only
error out when that cipher is selected by negotiation.  That's not very
friendly to the user, so check the list on startup, and give a clear error
message immediately.

This patches changes the cipher_kt_get() to let the caller decide what
action to take if no valid cipher was found.  This enables us to print all
invalid ciphers in the list, instead of just the first invalid cipher.

This should fix trac #737.

v2: improve tls_check_ncp_cipher_list() with Selva's review suggestions.

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Selva Nair <selva.nair@gmail.com>
Message-Id: <1476257569-16301-1-git-send-email-steffan@karger.me>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg12671.html
Trac: #737
Signed-off-by: David Sommerseth <davids@openvpn.net>
src/openvpn/crypto.c
src/openvpn/crypto_backend.h
src/openvpn/crypto_mbedtls.c
src/openvpn/crypto_openssl.c
src/openvpn/options.c
src/openvpn/ssl.c
src/openvpn/ssl.h