diff options
author | Doug Hogan <[email protected]> | 2019-01-03 18:46:08 -0800 |
---|---|---|
committer | Doug Hogan <[email protected]> | 2019-01-08 00:08:22 -0800 |
commit | 7ad28fd1bd0b6504c78c5d76903878cebd5cd631 (patch) | |
tree | f883f98ac4c07dc71a1ff167bcb69ac6f18beeaf /system/doc | |
parent | 74a4f7b390581859b798079484f4af2644d41ee2 (diff) | |
download | otp-7ad28fd1bd0b6504c78c5d76903878cebd5cd631.tar.gz otp-7ad28fd1bd0b6504c78c5d76903878cebd5cd631.tar.bz2 otp-7ad28fd1bd0b6504c78c5d76903878cebd5cd631.zip |
Revamp get_dss_public_key()
* Simplify logic by having incremental allocation and only free on error on one place.
* Add error checking on all OpenSSL calls.
* Make it explicit when you need to be careful with non-reference counted pointers.
- set0 calls will use the pointer values without ref 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