In interactive mode only config OpenSSL once.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 12 May 2006 17:11:58 +0000 (17:11 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 12 May 2006 17:11:58 +0000 (17:11 +0000)
apps/apps.c

index c4a7f12..d2b0c56 100644 (file)
@@ -1437,6 +1437,10 @@ ENGINE *setup_engine(BIO *err, const char *engine, int debug)
 
 int load_config(BIO *err, CONF *cnf)
        {
+       static int load_config_called = 0;
+       if (load_config_called)
+               return 1;
+       load_config_called = 1;
        if (!cnf)
                cnf = config;
        if (!cnf)