]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
allow OPENSSL_ENGINES to be specified explicitly
authorIlya Shipitsin <chipitsine@gmail.com>
Tue, 26 Jun 2018 16:48:33 +0000 (21:48 +0500)
committerGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Tue, 21 Aug 2018 16:37:10 +0000 (19:37 +0300)
(cherry picked from commit 6eb11c677ad3c948da4abdca45ff451f50f413c1)

test/00-engine.t
test/01-digest.t
test/02-mac.t
test/03-encrypt.t
test/04-pkey.t

index 35b5f929b61bd592b8d4bfaa06c5296c71597b47..3077093faf9770de0ccae249c2f08629a373cb22 100644 (file)
@@ -8,8 +8,10 @@ open F,">","testdata.dat";
 print F "12345670" x 128;
 close F;
 
-# Set OPENSSL_ENGINES environment variable to just build engine
-$ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+# Set OPENSSL_ENGINES environment variable to just built engine
+if(!defined $ENV{'OPENSSL_ENGINES'}){
+       $ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+}
 
 $key='0123456789abcdef' x 2;
 
index cea8358a47c979f3b9b44c76c981d28919a92442..3838fd203763065a22cb4643c45b9c1fda9da2c5 100644 (file)
@@ -2,8 +2,10 @@
 use Test::More tests => 16;
 use Cwd 'abs_path';
 
-# Set OPENSSL_ENGINES environment variable to just build engine
-$ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+# Set OPENSSL_ENGINES environment variable to just built engine
+if(!defined $ENV{'OPENSSL_ENGINES'}){
+        $ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+}
 # Set engine name from environment to allow testing of different engines
 $engine=$ENV{'ENGINE_NAME'}||"gost";
 # Reopen STDERR to eliminate extra output
index 185bac160ab10a17bd934ff0ce0a5e55699fd99e..5713dca51635c3a3825a99f1c26c1e0cca00d709 100644 (file)
@@ -11,8 +11,10 @@ close F;
 open F,">","testbig.dat";
 print F ("12345670" x 8 . "\n") x  4096;
 close F;
-# Set OPENSSL_ENGINES environment variable to just build engine
-$ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+# Set OPENSSL_ENGINES environment variable to just built engine
+if(!defined $ENV{'OPENSSL_ENGINES'}){
+        $ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+}
 
 $key='0123456789abcdef' x 2;
 
index 9cada3492b9c16aeca16df1f79e8114475874af1..d5b56c463595a0aa97eb02fc1d0e93cce11c03b1 100644 (file)
@@ -11,8 +11,10 @@ $use_config = 1;
 # prepare data for 
 
 
-# Set OPENSSL_ENGINES environment variable to just build engine
-$ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+# Set OPENSSL_ENGINES environment variable to just built engine
+if(!defined $ENV{'OPENSSL_ENGINES'}){
+        $ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+}
 
 $key='0123456789abcdef' x 2;
 
index bd4a94f6ceb9263aeec4df29c8ee8926dca4c5c0..84ae81e0b51c516a6f97fe55fc39252a006c004e 100644 (file)
@@ -11,8 +11,10 @@ $use_config = 1;
 # prepare data for 
 
 
-# Set OPENSSL_ENGINES environment variable to just build engine
-$ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+# Set OPENSSL_ENGINES environment variable to just built engine
+if(!defined $ENV{'OPENSSL_ENGINES'}){
+        $ENV{'OPENSSL_ENGINES'} = abs_path("../.libs");
+}
 
 $engine=$ENV{'ENGINE_NAME'}||"gost";