Cleanup: move provider mains up
authorRichard Levitte <levitte@openssl.org>
Fri, 4 Oct 2019 13:37:14 +0000 (15:37 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 10 Oct 2019 12:12:15 +0000 (14:12 +0200)
providers/default/defltprov.c and providers/legacy/legacyprov.c
are moved up to providers/ and providers/build.info is adjusted
accordingly.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10088)

providers/build.info
providers/default/build.info [deleted file]
providers/defltprov.c [moved from providers/default/defltprov.c with 100% similarity]
providers/legacy/build.info [deleted file]
providers/legacyprov.c [moved from providers/legacy/legacyprov.c with 100% similarity]

index 42b9c0aa9c8da404da5eb53dbd930d017108c0b0..c31c4271defd7c1d1d5adb424f06ed71226fcf58 100644 (file)
@@ -28,7 +28,7 @@
 #                       FIPS_MODE undefined.  The default and legacy
 #                       providers use this.
 
-SUBDIRS=common default implementations
+SUBDIRS=common implementations
 
 INCLUDE[../libcrypto]=common/include
 
@@ -82,6 +82,7 @@ LIBS{noinst}=$LIBNONFIPS $LIBIMPLEMENTATIONS
 # with DEPEND.
 $DEFAULTGOAL=../libcrypto
 SOURCE[$DEFAULTGOAL]=$LIBIMPLEMENTATIONS $LIBNONFIPS
+SOURCE[$DEFAULTGOAL]=defltprov.c
 # Some legacy implementations depend on provider header files
 INCLUDE[../libcrypto]=implementations/include
 
@@ -117,7 +118,6 @@ ENDIF
 #
 IF[{- !$disabled{legacy} -}]
   # The legacy implementation library
-  SUBDIRS=legacy
   LIBS{noinst}=$LIBLEGACY
   DEPEND[$LIBLEGACY]=$LIBCOMMON $LIBNONFIPS
 
@@ -147,6 +147,6 @@ IF[{- !$disabled{legacy} -}]
 
   # Common things that are valid no matter what form the Legacy provider
   # takes.
-  INCLUDE[$LEGACYGOAL]=../include common/include
+  SOURCE[$LEGACYGOAL]=legacyprov.c
+  INCLUDE[$LEGACYGOAL]=../include implementations/include
 ENDIF
-
diff --git a/providers/default/build.info b/providers/default/build.info
deleted file mode 100644 (file)
index 139590a..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-$GOAL=../../libcrypto
-SOURCE[$GOAL]=defltprov.c
diff --git a/providers/legacy/build.info b/providers/legacy/build.info
deleted file mode 100644 (file)
index 1236f15..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-IF[{- $disabled{module} -}]
-  $GOAL=../../libcrypto
-ELSE
-  $GOAL=../legacy
-ENDIF
-
-SOURCE[$GOAL]=legacyprov.c