Typo. OPENSSL_NO_ECDH, not NO_OPENSSL_ECDH
[openssl.git] / apps / spkac.c
index fa5dc248c88734b2addc97d2a27421125cd072f5..4ce53e36c9022820432338aa525719efafe22bd0 100644 (file)
@@ -98,6 +98,9 @@ int MAIN(int argc, char **argv)
 
        if (!bio_err) bio_err = BIO_new_fp(stderr, BIO_NOCLOSE);
 
+       if (!load_config(bio_err, NULL))
+               goto end;
+
        prog=argv[0];
        argc--;
        argv++;
@@ -183,7 +186,7 @@ bad:
        if(keyfile) {
                pkey = load_key(bio_err,
                                strcmp(keyfile, "-") ? keyfile : NULL,
-                               FORMAT_PEM, passin, e, "private key");
+                               FORMAT_PEM, 1, passin, e, "private key");
                if(!pkey) {
                        goto end;
                }