diff options
author | tb <> | 2023-07-02 13:37:09 +0000 |
---|---|---|
committer | tb <> | 2023-07-02 13:37:09 +0000 |
commit | 81cf7f5a0e83ddd6884c89e7deb313c814fb1794 (patch) | |
tree | 4a45788c1a81131fd17dbb375d331a34e94f4b78 /src/lib/libssl/ssl_err.c | |
parent | ba8395f5f34f1d7f095fcbdb24b6427010056a97 (diff) | |
download | openbsd-81cf7f5a0e83ddd6884c89e7deb313c814fb1794.tar.gz openbsd-81cf7f5a0e83ddd6884c89e7deb313c814fb1794.tar.bz2 openbsd-81cf7f5a0e83ddd6884c89e7deb313c814fb1794.zip |
Switch sign_sig() and sign_setup() to using BN_CTX
Both these functions use a BN_CTX internally to deal with the EC API
that usually requires one. However, they don't actually make use of it.
Get the BIGNUMs from the BN_CTX instead, which simplifies the cleanup.
Also defer allocation of the ECDSA_SIG to the very end. Instead of using
its internal r and s, use two local r and s variables and transfer those
to the ECDSA_SIG on success.
ok beck jsing
Diffstat (limited to 'src/lib/libssl/ssl_err.c')
0 files changed, 0 insertions, 0 deletions