diff options
author | tb <> | 2022-11-19 11:48:24 +0000 |
---|---|---|
committer | tb <> | 2022-11-19 11:48:24 +0000 |
commit | 064aae90f56580b61b05fd56fc4c0fffaf8458e0 (patch) | |
tree | 66ea6e90a022076705b4988bf215c0e9eb93ad45 /src/lib/libcrypto/dsa/dsa_pmeth.c | |
parent | 6d17e444a831167b313a7a4551c81554a139c837 (diff) | |
download | openbsd-064aae90f56580b61b05fd56fc4c0fffaf8458e0.tar.gz openbsd-064aae90f56580b61b05fd56fc4c0fffaf8458e0.tar.bz2 openbsd-064aae90f56580b61b05fd56fc4c0fffaf8458e0.zip |
Rework DSA_sign() and DSA_verify()
Change DSA_sign() to single exit and check the signed i2d_DSA_SIG() return
value before assigning it to an unsigned int.
In DSA_verify() let d2i_DSA_SIG() handle the allocation, split error check
of i2d_DSA_SIG() from signature check and change an unnecessary freezero()
to free.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_pmeth.c')
0 files changed, 0 insertions, 0 deletions