]> git.ipfire.org Git - thirdparty/openvpn.git/commit
OpenSSL: check EVP_PKEY key types before returning the pkey
authorEmmanuel Deloget <logout@free.fr>
Fri, 12 Jan 2018 16:48:24 +0000 (17:48 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 14 Jan 2018 18:00:43 +0000 (19:00 +0100)
commite603afabb845d2552198843a987b5d9b0b7ac404
tree24d29757ecf34e23b999387e88c8b6118f55e2b8
parent006d6a57b8835c15222359bfb42c95005723394c
OpenSSL: check EVP_PKEY key types before returning the pkey

The internal EVP_PKEY::pkey member is an union thus we need to check for
the real key type before we can return the corresponding RSA, DSA or EC
public key.

Reported-by: Selva Nair <selva.nair@gmail.com>
Signed-off-by: Emmanuel Deloget <logout@free.fr>
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <e8333f0b838670e558a9fe292cea8988484cd77f.1515775195.git.logout@free.fr>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg16202.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/openssl_compat.h