summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_both.c
diff options
context:
space:
mode:
authortb <>2023-07-02 13:37:09 +0000
committertb <>2023-07-02 13:37:09 +0000
commit81cf7f5a0e83ddd6884c89e7deb313c814fb1794 (patch)
tree4a45788c1a81131fd17dbb375d331a34e94f4b78 /src/lib/libssl/ssl_both.c
parentba8395f5f34f1d7f095fcbdb24b6427010056a97 (diff)
downloadopenbsd-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_both.c')
0 files changed, 0 insertions, 0 deletions