[Bug 237757] www/nginx-devel: OCSP stapling broken with security/libressl 2.9.1

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 13 20:42:08 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237757

--- Comment #7 from Elias Ohm <info at eliasohm.de> ---
Sure it would be fine if LibreSSL would provide same Interface as OpenSSL.
Not sure why this differs, so not I cannot say whether it's a bug or just the
design of the library.
It could be a matter of improving security or applying some best practices, or
just "laziness" (or beeing short on time or such) that they did it differently.
Of course it would be fine to be 100% interchangable from interface and
functionality, but don't know whether they want that.

For me personally it sounds reasonable to make a function called
"SSL_CTX_get_extra_chain_certs" to only get the extra chain and not falling
back to some other chain (which could be not what is wanted from plain wording
of the function).
Would it be the other way round, yes. (Having a SSL_CTX_get_extra_chain_certs
and a SSL_CTX_get_extra_chain_certs_or_chain.)

For OpenSSL this has historical reasons, first implementing a convenience
function or (more or less undocumented) interface for the chain certificates at
a time where the per certificate chain where not available.
Afterwards, yes, for compatibility of 3rd party library code that expects the
function to just return the chain from the usual location it's nice to provide
such a fallback to not break them all or force the applications to itself stick
on the extra-chain (and only working with libs that do so).
Otherwise I assume they would have called the differently to have the function
Name doing what it says in both cases on not just in the new one added for
proper Access to the extra vars (and exactly them and not the one or the
other).
Where on the other Hand thats not really fine - yes and leads to such behaviour
the nginx devs Show (it's still working, so why adjust code).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list