Browse Source

only update OPENSSL_ENGINE_ID if already set

JacobBarthelmeh 3 years ago
parent
commit
d44549fd77
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/openssl.test

+ 1 - 1
scripts/openssl.test

@@ -152,8 +152,8 @@ start_openssl_server() {
                 exit 1
             fi
         fi
+        OPENSSL_ENGINE_ID="-engine ${OPENSSL_ENGINE_ID}"
     fi
-    OPENSSL_ENGINE_ID="-engine ${OPENSSL_ENGINE_ID}"
 
     while [ "$counter" -lt 20 ]; do
         echo -e "\n# Trying to start $openssl_suite OpenSSL server on port $server_port..."