Change the trust and purpose code so it doesn't need init
[openssl.git] / apps / verify.c
index f9281a65cf423ac48fc5dac3a5404f6bbb829c44..e580acee8561d493cdfc1c90da283134ac724391 100644 (file)
@@ -84,7 +84,6 @@ int MAIN(int argc, char **argv)
        X509_STORE *cert_ctx=NULL;
        X509_LOOKUP *lookup=NULL;
 
-       X509_init();
        cert_ctx=X509_STORE_new();
        if (cert_ctx == NULL) goto end;
        X509_STORE_set_verify_cb_func(cert_ctx,cb);
@@ -196,7 +195,6 @@ end:
        }
        if (cert_ctx != NULL) X509_STORE_free(cert_ctx);
        sk_X509_pop_free(untrusted, X509_free);
-       X509_cleanup();
        EXIT(ret);
        }