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 c4a7f12e7309e47051c7bc9ab799970711b780f0..d2b0c565a04af64ecc18f402cff70363543d5640 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)