diff options
author | Rich Salz <rsalz@openssl.org> | 2015-03-25 23:35:24 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-03-25 23:35:24 +0100 |
commit | 8fdc3734c063146b038608c2412a0f2c9b21b6d6 (patch) | |
tree | ed30d40a40a6bf7002121a29e3db4b4790a54d87 /doc | |
parent | Resolve swallowed returns codes (diff) | |
download | openssl-8fdc3734c063146b038608c2412a0f2c9b21b6d6.tar.xz openssl-8fdc3734c063146b038608c2412a0f2c9b21b6d6.zip |
free NULL cleanup.
This gets EC_GROUP_clear_free EC_GROUP_free, EC_KEY_free,
EC_POINT_clear_free, EC_POINT_free
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/crypto/EC_GROUP_new.pod | 2 | ||||
-rw-r--r-- | doc/crypto/EC_KEY_new.pod | 1 | ||||
-rw-r--r-- | doc/crypto/EC_POINT_new.pod | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/doc/crypto/EC_GROUP_new.pod b/doc/crypto/EC_GROUP_new.pod index ff55bf33a3..44599e235d 100644 --- a/doc/crypto/EC_GROUP_new.pod +++ b/doc/crypto/EC_GROUP_new.pod @@ -75,8 +75,10 @@ In order to construct a builtin curve use the function EC_GROUP_new_by_curve_nam be constructed. EC_GROUP_free frees the memory associated with the EC_GROUP. +If B<group> is NULL nothing is done. EC_GROUP_clear_free destroys any sensitive data held within the EC_GROUP and then frees its memory. +If B<group> is NULL nothing is done. =head1 RETURN VALUES diff --git a/doc/crypto/EC_KEY_new.pod b/doc/crypto/EC_KEY_new.pod index e859689bcb..c7370581bf 100644 --- a/doc/crypto/EC_KEY_new.pod +++ b/doc/crypto/EC_KEY_new.pod @@ -47,6 +47,7 @@ EC_GROUP_new_by_curve_name. Calling EC_KEY_free decrements the reference count for the EC_KEY object, and if it has dropped to zero then frees the memory associated with it. +If B<key> is NULL nothing is done. EC_KEY_copy copies the contents of the EC_KEY in B<src> into B<dest>. diff --git a/doc/crypto/EC_POINT_new.pod b/doc/crypto/EC_POINT_new.pod index 858baf4244..0a20fced4e 100644 --- a/doc/crypto/EC_POINT_new.pod +++ b/doc/crypto/EC_POINT_new.pod @@ -53,8 +53,10 @@ An EC_POINT represents a point on a curve. A new point is constructed by calling object that the point relates to. EC_POINT_free frees the memory associated with the EC_POINT. +if B<point> is NULL nothing is done. EC_POINT_clear_free destroys any sensitive data held within the EC_POINT and then frees its memory. +if B<point> is NULL nothing is done. EC_POINT_copy copies the point B<src> into B<dst>. Both B<src> and B<dst> must use the same EC_METHOD. |