Deleted Added
full compact
enc.c (79998) enc.c (100928)
1/* apps/enc.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 85 unchanged lines hidden (view full) ---

94 unsigned char salt[PKCS5_SALT_LEN];
95 char *str=NULL, *passarg = NULL, *pass = NULL;
96 char *hkey=NULL,*hiv=NULL,*hsalt = NULL;
97 int enc=1,printkey=0,i,base64=0;
98 int debug=0,olb64=0,nosalt=0;
99 const EVP_CIPHER *cipher=NULL,*c;
100 char *inf=NULL,*outf=NULL;
101 BIO *in=NULL,*out=NULL,*b64=NULL,*benc=NULL,*rbio=NULL,*wbio=NULL;
1/* apps/enc.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 85 unchanged lines hidden (view full) ---

94 unsigned char salt[PKCS5_SALT_LEN];
95 char *str=NULL, *passarg = NULL, *pass = NULL;
96 char *hkey=NULL,*hiv=NULL,*hsalt = NULL;
97 int enc=1,printkey=0,i,base64=0;
98 int debug=0,olb64=0,nosalt=0;
99 const EVP_CIPHER *cipher=NULL,*c;
100 char *inf=NULL,*outf=NULL;
101 BIO *in=NULL,*out=NULL,*b64=NULL,*benc=NULL,*rbio=NULL,*wbio=NULL;
102#define PROG_NAME_SIZE 16
103 char pname[PROG_NAME_SIZE];
102#define PROG_NAME_SIZE 39
103 char pname[PROG_NAME_SIZE+1];
104
105 apps_startup();
106
107 if (bio_err == NULL)
108 if ((bio_err=BIO_new(BIO_s_file())) != NULL)
109 BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);
110
111 /* first check the program name */

--- 533 unchanged lines hidden ---
104
105 apps_startup();
106
107 if (bio_err == NULL)
108 if ((bio_err=BIO_new(BIO_s_file())) != NULL)
109 BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);
110
111 /* first check the program name */

--- 533 unchanged lines hidden ---