When build as dynamic engines, the loading functions should be defined
[openssl.git] / engines / e_cswift.c
index f3d36283660156d72ff7f6353c80f55034165bd4..ac4909857a15dbf034ed075f751f151971571ff0 100644 (file)
@@ -262,6 +262,7 @@ static int bind_helper(ENGINE *e)
        return 1;
        }
 
+#ifdef OPENSSL_NO_DYNAMIC_ENGINE
 static ENGINE *engine_cswift(void)
        {
        ENGINE *ret = ENGINE_new();
@@ -284,6 +285,7 @@ void ENGINE_load_cswift(void)
        ENGINE_free(toadd);
        ERR_clear_error();
        }
+#endif
 
 /* This is a process-global DSO handle used for loading and unloading
  * the CryptoSwift library. NB: This is only set (or unset) during an