Drop libimplementations.a
authorRichard Levitte <levitte@openssl.org>
Thu, 6 May 2021 06:48:15 +0000 (08:48 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 7 May 2021 08:17:23 +0000 (10:17 +0200)
commit848af5e8feab2dd27becec8a4121947ab4a97df3
treee78a9d4ba286c58cc9a670d8f00ac839be64f738
parent5a86dac8620b31b3259a8a2f609f3c9d06a1a21b
Drop libimplementations.a

libimplementations.a was a nice idea, but had a few flaws:

1.  The idea to have common code in libimplementations.a and FIPS
    sensitive helper functions in libfips.a / libnonfips.a didn't
    catch on, and we saw full implementation ending up in them instead
    and not appearing in libimplementations.a at all.

2.  Because more or less ALL algorithm implementations were included
    in libimplementations.a (the idea being that the appropriate
    objects from it would be selected automatically by the linker when
    building the shared libraries), it's very hard to find only the
    implementation source that should go into the FIPS module, with
    the result that the FIPS checksum mechanism include source files
    that it shouldn't

To mitigate, we drop libimplementations.a, but retain the idea of
collecting implementations in static libraries.  With that, we not
have:

libfips.a

    Includes all implementations that should become part of the FIPS
    provider.

liblegacy.a

    Includes all implementations that should become part of the legacy
    provider.

libdefault.a

    Includes all implementations that should become part of the
    default and base providers.

With this, libnonfips.a becomes irrelevant and is dropped.
libcommon.a is retained to include common provider code that can be
used uniformly by all providers.

Fixes #15157

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15171)
27 files changed:
crypto/aes/build.info
crypto/bn/build.info
crypto/build.info
crypto/ec/build.info
crypto/md5/build.info
crypto/modes/build.info
crypto/poly1305/build.info
crypto/ripemd/build.info
crypto/sha/build.info
crypto/whrlpool/build.info
providers/build.info
providers/common/build.info
providers/common/der/build.info
providers/implementations/asymciphers/build.info
providers/implementations/ciphers/build.info
providers/implementations/digests/build.info
providers/implementations/encode_decode/build.info
providers/implementations/exchange/build.info
providers/implementations/kdfs/build.info
providers/implementations/kem/build.info
providers/implementations/keymgmt/build.info
providers/implementations/macs/build.info
providers/implementations/rands/build.info
providers/implementations/rands/seeding/build.info
providers/implementations/signature/build.info
providers/implementations/storemgmt/build.info
ssl/build.info