Move the certificate and key loading functions to apps.c, so they can
[openssl.git] / apps / nseq.c
index d9d01659e78db03dc83c2cf0dba844bba5a5ee9c..cc88d50ceba50ef82b1a0beb0f1c1cea23d855cc 100644 (file)
@@ -65,7 +65,7 @@
 #undef PROG
 #define PROG nseq_main
 
-static int dump_cert_text(BIO *out, X509 *x);
+int MAIN(int, char **);
 
 int MAIN(int argc, char **argv)
 {
@@ -158,17 +158,3 @@ end:
        EXIT(ret);
 }
 
-static int dump_cert_text(BIO *out, X509 *x)
-{
-       char buf[256];
-       X509_NAME_oneline(X509_get_subject_name(x),buf,256);
-       BIO_puts(out,"subject=");
-       BIO_puts(out,buf);
-
-       X509_NAME_oneline(X509_get_issuer_name(x),buf,256);
-       BIO_puts(out,"\nissuer= ");
-       BIO_puts(out,buf);
-       BIO_puts(out,"\n");
-       return 0;
-}
-