Detached encrypt/decrypt example, fix decrypt sample.
[openssl.git] / demos / b64.c
index 8e248e7e728547c75e1659e80729fee39f6e6920..efdd44457da6b7ce6abc4423cea572202990d310 100644 (file)
@@ -83,7 +83,6 @@ char **argv;
        unsigned char *buff=NULL,*bufsize=NULL;
        int bsize=BSIZE,verbose=0;
        int ret=1,inl;
-       unsigned char key[24],iv[MD5_DIGEST_LENGTH];
        char *str=NULL;
        char *hkey=NULL,*hiv=NULL;
        int enc=1,printkey=0,i,base64=0;
@@ -91,8 +90,7 @@ char **argv;
        EVP_CIPHER *cipher=NULL,*c;
        char *inf=NULL,*outf=NULL;
        BIO *in=NULL,*out=NULL,*b64=NULL,*benc=NULL,*rbio=NULL,*wbio=NULL;
-#define PROG_NAME_SIZE  16
-        char pname[PROG_NAME_SIZE];
+#define PROG_NAME_SIZE  39
 
 
        apps_startup();