diff options
author | Doug Hogan <[email protected]> | 2019-01-03 18:41:37 -0800 |
---|---|---|
committer | Doug Hogan <[email protected]> | 2019-01-08 00:08:22 -0800 |
commit | 74a4f7b390581859b798079484f4af2644d41ee2 (patch) | |
tree | 434c68f5bd3e4d884f8dbb35ac0f3f2959d62114 /system/doc | |
parent | e8813319d24ed1f8200b09969b015fb2311967f9 (diff) | |
download | otp-74a4f7b390581859b798079484f4af2644d41ee2.tar.gz otp-74a4f7b390581859b798079484f4af2644d41ee2.tar.bz2 otp-74a4f7b390581859b798079484f4af2644d41ee2.zip |
Revamp get_dss_private_key()
* Simplify logic by having incremental allocation and only free on error
in one place.
* Add error checking on all OpenSSL calls.
* Make it explicit when you need to be careful with non-ref counted pointers.
- set0 calls will save the pointer without reference counting.
- On success, set pointers to NULL to avoid double frees since the struct
is now responsible for freeing the resources.
Diffstat (limited to 'system/doc')
0 files changed, 0 insertions, 0 deletions