[openssl-dev] [openssl.org #3868] [PATCH] Add SSL_get0_peer_certificate()

Short, Todd via RT rt at openssl.org
Mon Jun 20 16:23:50 UTC 2016


Not strictly necessary; mostly convenience. Decrementing the pointer usually requires doing the corresponding  free, which really shouldn’t do anything but decrement the refcount if you just got it.
--
-Todd Short
// tshort at akamai.com<mailto:tshort at akamai.com>
// "One if by land, two if by sea, three if by the Internet."

On Jun 20, 2016, at 12:18 PM, Rich Salz via RT <rt at openssl.org<mailto:rt at openssl.org>> wrote:

Is this needed? Can your get0 function just call get and decrement the
refcount?

--
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=3868
Please log in as guest with password guest if prompted



-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=3868
Please log in as guest with password guest if prompted



More information about the openssl-dev mailing list