Fix names in usage page of s_time, s_server and s_client
[openssl.git] / apps / pkcs7.c
index 47bd7564a97722aab5830cfae1f55bad7f789c6c..06640bf0f2a58e29c8b739eee900cd319e5c5238 100644 (file)
@@ -1,5 +1,5 @@
 /* apps/pkcs7.c */
-/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
  * This package is an SSL implementation written
@@ -87,7 +87,9 @@ char **argv;
        {
        PKCS7 *p7=NULL;
        int i,badops=0;
+#if !defined(NO_DES) || !defined(NO_IDEA)
        EVP_CIPHER *enc=NULL;
+#endif
        BIO *in=NULL,*out=NULL;
        int informat,outformat;
        char *infile,*outfile,*prog,buf[256];
@@ -98,7 +100,7 @@ char **argv;
 
        if (bio_err == NULL)
                if ((bio_err=BIO_new(BIO_s_file())) != NULL)
-                       BIO_set_fp(bio_err,stderr,BIO_NOCLOSE);
+                       BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);
 
        infile=NULL;
        outfile=NULL;
@@ -275,9 +277,9 @@ bad:
                                BIO_puts(out,buf);
 
                                BIO_puts(out,"\nlast update=");
-                               ASN1_UTCTIME_print(out,crl->crl->lastUpdate);
+                               ASN1_TIME_print(out,crl->crl->lastUpdate);
                                BIO_puts(out,"\nnext update=");
-                               ASN1_UTCTIME_print(out,crl->crl->nextUpdate);
+                               ASN1_TIME_print(out,crl->crl->nextUpdate);
                                BIO_puts(out,"\n");
 
                                PEM_write_bio_X509_CRL(out,crl);