Yes you can do so. It is documented in most of the manpages, and in 1.1.0 and
later it should be in all of them.
On 1/1/18, 11:19 AM, "Ray Satiro via openssl-dev"
wrote:
I'm trying to figure out whether it's supported to call X509_free(NULL)
in 1.0.2 and
➢So it's guaranteed for 1.1, mostly guaranteed for recent 1.0.2, but not
guaranteed for older 1.0.2.
yes.
➢ I also think it would be good to backport all to 1.0.2
Yes. I believe I did that, but I am not absolutely 100% positive.
--
openssl-dev mailing list
To unsubscribe:
On 12/22/2017 9:59 AM, Salz, Rich via openssl-dev wrote:
I think we fixed all such cases in 1.1.0, all *_free()
functions should handle NULL. I don't think we backported to changes
to 1.0.2.
Yes, and we fixed the documentation. I backported all/most of them
to 1.0.2 to make cherry-picking
➢ I think we fixed all such cases in 1.1.0, all *_free() functions
should handle NULL. I don't think we backported to changes to 1.0.2.
Yes, and we fixed the documentation. I backported all/most of them to 1.0.2 to
make cherry-picking easier. I don’t know if I changed the docs.
On Fri, Dec 22, 2017 at 09:30:19AM -0500, Ken Goldman wrote:
> On 12/22/2017 9:24 AM, Salz, Rich via openssl-users wrote:
> > > if (ptr!= NULL) free(ptr);
> > That shouldn’t be necessary for OpenSSL. If you find places where it is,
> > please open an issue.
>
> OK. I'll mention a few, but
On Fri, Dec 22, 2017 at 01:06:20PM +, Salz, Rich via openssl-dev wrote:
> Our intent is that all FREE functions can handle NULL. If you find things
> missing or undocumented, please open an issue on GitHub. Thanks!
I think we fixed all such cases in 1.1.0, all *_free() functions
should
On 12/22/2017 9:24 AM, Salz, Rich via openssl-users wrote:
if (ptr!= NULL) free(ptr);
That shouldn’t be necessary for OpenSSL. If you find places where it is, please open an issue.
OK. I'll mention a few, but it's a global issue.
The code may handle NULL. However,
Our intent is that all FREE functions can handle NULL. If you find things
missing or undocumented, please open an issue on GitHub. Thanks!
--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Hi,
I think it should be documented, but currently the two supported
branches are ok with NULL:
- following from IMPLEMENT_ASN1_FUNCTIONS(X509), for both
openssl-1.0.2n and 1.1.0g:
- 1.0.2n ends up in asn1_item_combine_free()
- 1.1.0g ends up in asn1_item_embed_free()
- in both cases an explicit
> On Dec 20, 2017, at 5:50 PM, Ray Satiro via openssl-dev
> wrote:
>
> 'm trying to figure out whether it's supported to call X509_free(NULL)
> in 1.0.2 and beyond. It's not documented what action occurs when the
> pointer is null. Also generally speaking is it
10 matches
Mail list logo