summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_versions.c
diff options
context:
space:
mode:
authortb <>2023-07-02 13:37:09 +0000
committertb <>2023-07-02 13:37:09 +0000
commit00e10f3df09e5d95916e1d74f109f76a1919b6f1 (patch)
tree4a45788c1a81131fd17dbb375d331a34e94f4b78 /src/lib/libssl/ssl_versions.c
parenta88c8d13465dce4e2d4d27f60d8ac8d14b2d1710 (diff)
downloadopenbsd-00e10f3df09e5d95916e1d74f109f76a1919b6f1.tar.gz
openbsd-00e10f3df09e5d95916e1d74f109f76a1919b6f1.tar.bz2
openbsd-00e10f3df09e5d95916e1d74f109f76a1919b6f1.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_versions.c')
0 files changed, 0 insertions, 0 deletions