summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa/dsa_lib.c
diff options
context:
space:
mode:
authortb <>2025-01-21 15:44:22 +0000
committertb <>2025-01-21 15:44:22 +0000
commitbc6dc1ff28111bbeaccd1e4fbf2ba86016af9563 (patch)
tree0553e257e45ee4491e27d615f802c6508976e5c4 /src/lib/libcrypto/dsa/dsa_lib.c
parent17178449b414247a16e12c6127a0d4007ff5790b (diff)
downloadopenbsd-bc6dc1ff28111bbeaccd1e4fbf2ba86016af9563.tar.gz
openbsd-bc6dc1ff28111bbeaccd1e4fbf2ba86016af9563.tar.bz2
openbsd-bc6dc1ff28111bbeaccd1e4fbf2ba86016af9563.zip
Move BN_RECP_CTX to the heap
This introduces a BN_RECP_CTX_create() function that allocates and populates the BN_RECP_CTX in a single call, without taking an unused BN_CTX argument. At the same time, make the N and Nr members BIGNUMs on the heap which are allocated by BN_RECP_CTX_create() and freed by BN_RECP_CTX_free() and remove the unnecessary flags argument. Garbage collect the now unused BN_RECP_CTX_{new,init,set}(). ok jsing
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_lib.c')
0 files changed, 0 insertions, 0 deletions