]> git.ipfire.org Git - thirdparty/openvpn.git/commit
OpenSSL: force meth->name as non-const when we free() it
authorEmmanuel Deloget <logout@free.fr>
Mon, 12 Jun 2017 13:43:30 +0000 (15:43 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 18 Jun 2017 11:40:38 +0000 (13:40 +0200)
commit3fd07c31fe8878dc75e760d151d291379c0f8743
tree6f7e311a3acc60aec14c72f2b67f9d0f2c8ae899
parentc07c0358b553c519ed9d80e2e0a9ba48ca8850e4
OpenSSL: force meth->name as non-const when we free() it

We are in control of meth->name (we string_alloc() it in RSA_meth_new())
so we know that we can free() it when it's no longer needed. Yet we have
to force the value to be non-const to avoid a compiler warning -- due to
the fact that OpenSSL defines the value as a const char*, regardless of
its origin.

Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <20170612134330.20971-9-logout@free.fr>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg14798.html

Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/openssl_compat.h