summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/dsa/dsatest.c
diff options
context:
space:
mode:
authortb <>2023-08-12 06:14:36 +0000
committertb <>2023-08-12 06:14:36 +0000
commit43f9166987ef626b65b6af9f5e4b7a4179c0ecac (patch)
tree8a0516229988a4b4d44324162099ad13ebef80fa /src/regress/lib/libcrypto/dsa/dsatest.c
parent207136fa30c71e8c7b67e46cb5ec9af2b42a6626 (diff)
downloadopenbsd-43f9166987ef626b65b6af9f5e4b7a4179c0ecac.tar.gz
openbsd-43f9166987ef626b65b6af9f5e4b7a4179c0ecac.tar.bz2
openbsd-43f9166987ef626b65b6af9f5e4b7a4179c0ecac.zip
Convert {DH,DSA}_new_method() to using calloc()
Due to OPENSSL_NO_ENGINE the engine member of dh and dsa is currently uninitialized. As a consequence, {DH,DSA}_get0_engine() will return a garbage pointer, which is particularly bad because the only reason we kept them in the first place is that they are used by some software... A side effect of freeing with {DH,DSA}_free() instead of a hand-rolled version is that we may call ->meth->finish() before ->meth->init() was called. We need a NULL check for ->meth to be on the safe side in case we should need to bring ENGINE back. with nits from djm ok deraadt djm
Diffstat (limited to 'src/regress/lib/libcrypto/dsa/dsatest.c')
0 files changed, 0 insertions, 0 deletions