Rename files in providers/implementations/signatures
authorRichard Levitte <levitte@openssl.org>
Thu, 6 May 2021 06:40:18 +0000 (08:40 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 7 May 2021 08:13:23 +0000 (10:13 +0200)
It was discovered that eddsa.c exist in two places, here and in
crypto/ec/curve448/, which would result in a file name clash if they
ever end up in the same library.

To mitigate, we rename the copy in providers/implementations/signatures
to have '_sig' in the file name, and do the same with all other source
files in this directory, for consistency.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15171)

providers/implementations/signature/build.info
providers/implementations/signature/dsa_sig.c [moved from providers/implementations/signature/dsa.c with 100% similarity]
providers/implementations/signature/ecdsa_sig.c [moved from providers/implementations/signature/ecdsa.c with 100% similarity]
providers/implementations/signature/eddsa_sig.c [moved from providers/implementations/signature/eddsa.c with 100% similarity]
providers/implementations/signature/mac_legacy_sig.c [moved from providers/implementations/signature/mac_legacy.c with 100% similarity]
providers/implementations/signature/rsa_sig.c [moved from providers/implementations/signature/rsa.c with 100% similarity]
providers/implementations/signature/sm2_sig.c [moved from providers/implementations/signature/sm2sig.c with 100% similarity]

index 84c5d905b269c15307b234d97809f622a4caf048..3df55b5eccbc0d6414cca6fe05e3871362ca1aa6 100644 (file)
@@ -6,19 +6,19 @@ $EC_GOAL=../../libimplementations.a
 $SM2SIG_GOAL=../../libimplementations.a
 
 IF[{- !$disabled{dsa} -}]
-  SOURCE[$DSA_GOAL]=dsa.c
+  SOURCE[$DSA_GOAL]=dsa_sig.c
 ENDIF
 
 IF[{- !$disabled{ec} -}]
-  SOURCE[$EC_GOAL]=eddsa.c ecdsa.c
+  SOURCE[$EC_GOAL]=eddsa_sig.c ecdsa_sig.c
 ENDIF
 
 IF[{- !$disabled{sm2} -}]
-  SOURCE[$SM2SIG_GOAL]=sm2sig.c
+  SOURCE[$SM2_GOAL]=sm2_sig.c
 ENDIF
 
-SOURCE[../../libfips.a]=rsa.c
-SOURCE[../../libnonfips.a]=rsa.c
+SOURCE[../../libfips.a]=rsa_sig.c
+SOURCE[../../libnonfips.a]=rsa_sig.c
 
 DEPEND[rsa.o]=../../common/include/prov/der_rsa.h
 DEPEND[dsa.o]=../../common/include/prov/der_dsa.h
@@ -26,5 +26,5 @@ DEPEND[ecdsa.o]=../../common/include/prov/der_ec.h
 DEPEND[eddsa.o]=../../common/include/prov/der_ecx.h
 DEPEND[sm2sig.o]=../../common/include/prov/der_sm2.h
 
-SOURCE[../../libfips.a]=mac_legacy.c
-SOURCE[../../libnonfips.a]=mac_legacy.c
+SOURCE[../../libfips.a]=mac_legacy_sig.c
+SOURCE[../../libnonfips.a]=mac_legacy_sig.c