I googled this link form compatibility for versions:

https://abi-laboratory.pro/tracker/timeline/openssl/

What is function is not used error? Is it gcc or #error in includes?

I see that functions should be empty macros:

/*
 * The old locking functions have been removed completely without
compatibility
 * macros. This is because the old functions either could not properly
report
 * errors, or the returned error values were not clearly documented.
 * Replacing the locking functions with with no-ops would cause race
condition
 * issues in the affected applications. It is far better for them to fail at
 * compile time.
 * On the other hand, the locking callbacks are no longer used.
Consequently,
 * the callback management functions can be safely replaced with no-op
macros.
 */
#  define CRYPTO_num_locks()            (1)
#  define CRYPTO_set_locking_callback(func)
#  define CRYPTO_get_locking_callback()         (NULL)
#  define CRYPTO_set_add_lock_callback(func)
#  define CRYPTO_get_add_lock_callback()        (NULL)

On 7 February 2017 at 03:15, Bill Fischofer <[email protected]>
wrote:

> On Mon, Feb 6, 2017 at 5:15 PM, Dmitry Eremin-Solenikov
> <[email protected]> wrote:
> > On 07.02.2017 00:57, Bill Fischofer wrote:
> >>
> >> The problem is not what level of OpenSSL ODP might be compiled
> >> against, but what level is installed on the system the ODP application
> >> is running on, since we don't distribute OpenSSL with ODP. OpenSSL
> >> v1.1.0 is backward-compatible with the older callback structure (they
> >> become no-ops) so there's no real penalty for using them as the
> >> init/term calls are no-ops
> >> and the actual lock functions will never be called by OpenSSL.
> >
> >
> > Compiler will bug out with 'function is not used' error with OpenSSL
> 1.1.0
> > headers. There is no way to use app compiled against 1.1.0 with earlier
> > library versions or vice versa, because libssl will have different
> file/so
> > names.
>
> If that's true then OpenSSL v1.1.0 is failing the backward
> compatibility it claims to provide and I'd think that would be a bug
> against OpenSSL.
>
> Until OpenSSL v1.1.0 is part of all currently supported standard
> distros (Ubuntu 16.10 still uses v1.0.2g) we cannot compile ODP
> against those higher levels for distribution. If you compile against
> the older version then it should work against an installed copy of
> v1.1.0 as noted above since v1.1.0 is backwards-compatible.
>
> >
> > --
> > With best wishes
> > Dmitry
>

Reply via email to