[openssl-dev] Backporting opaque struct getter/setter functions

Viktor Dukhovni openssl-users at dukhovni.org
Mon Jan 11 19:07:34 UTC 2016


> On Jan 10, 2016, at 8:09 PM, Peter Waltenberg <pwalten at au1.ibm.com> wrote:
> 
> The point of using accessor FUNCTIONS is that the code doesn't break if the structure size or offsets of fields in the underlying structures change across binaries.
> 
> Where that mainly has an impact is updating the crypto/ssl libs underneath existing binaries is more likely to just work.
> 
> #defines in the headers do not help at all here.

Well, this is why 1.1.0 is switching to functions, and making
the structures opaque.  As a result 1.1.0 is NOT binary
compatible with 1.0.x.  It is too late to change 1.0.x.

It will be easier to maintain a stable ABI starting with 1.1.0.
Switching from 1.0.x to 1.1.0 will require re-compilation, and
some source code changes.

-- 
	Viktor.





More information about the openssl-dev mailing list