66 #define PROG nseq_main
68 int MAIN(
int,
char **);
70 int MAIN(
int argc,
char **argv)
72 char **args, *infile = NULL, *outfile = NULL;
82 while (!badarg && *args && *args[0] ==
'-') {
83 if (!strcmp (*args,
"-toseq")) toseq = 1;
84 else if (!strcmp (*args,
"-in")) {
89 }
else if (!strcmp (*args,
"-out")) {
111 "Can't open input file %s\n", infile);
119 "Can't open output file %s\n", outfile);
124 #ifdef OPENSSL_SYS_VMS
132 seq = NETSCAPE_CERT_SEQUENCE_new();
134 while((x509 = PEM_read_bio_X509(in, NULL, NULL, NULL)))
143 PEM_write_bio_NETSCAPE_CERT_SEQUENCE(out, seq);
148 if (!(seq = PEM_read_bio_NETSCAPE_CERT_SEQUENCE(in, NULL, NULL, NULL))) {
157 PEM_write_bio_X509(out, x509);
163 NETSCAPE_CERT_SEQUENCE_free(seq);