EVP_MD_CTX_free documentation

Matt Caswell matt at openssl.org
Fri Jul 30 19:03:03 UTC 2021


All our _free functions will accept NULL. We rely on this extensively 
*everywhere*. We perhaps could be better at documenting it, but you can 
rely on it.

Matt

On 30/07/2021 17:55, Ken Goldman wrote:
> It would be nice if the documentation would guarantee that
> this function is a no-op when the parameter is NULL - like
> the standard free() call.
> 
> This would save coding (if not NULL) all the time.
> 
> Same comment for all the _free functions.
> 
> I know I can look at the code, but that doesn't
> provide an API guarantee.
> 


More information about the openssl-users mailing list