]> git.ipfire.org Git - thirdparty/openssl.git/commit - providers/common/include/prov/providercommonerr.h
PROV: Fix DSA and DH private key serializers
authorRichard Levitte <levitte@openssl.org>
Thu, 30 Jul 2020 08:14:27 +0000 (10:14 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 20 Aug 2020 10:33:53 +0000 (12:33 +0200)
commit6cc1dfca88c565ddacd9ea9aa8261ef9c0c37335
tree8558fcaaa2e2cde3e372d5c65606d674af37f02d
parent22b814443eea4ef4ea86d5d5677601d6645606d9
PROV: Fix DSA and DH private key serializers

If those private key serializer were given a key structure with just
the public key material, they crashed, because they tried to
de-reference NULL.  This adds better checking.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/12679)
crypto/err/openssl.txt
providers/common/include/prov/providercommonerr.h
providers/common/provider_err.c
providers/implementations/serializers/serializer_dh.c
providers/implementations/serializers/serializer_dsa.c