diff options
author | Ben Laurie <ben@openssl.org> | 2002-11-12 13:23:40 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2002-11-12 13:23:40 +0000 |
commit | 9831d941ca3d46eab3e61e6983921220b9d5d09a (patch) | |
tree | ec628033e73b153616f300b3807921c9fe7de70f /demos | |
parent | 707ceb29e04f7199f1ae619a6c0eab866fd15add (diff) |
Many security improvements (CHATS) and a warning fix.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/b64.c | 2 | ||||
-rw-r--r-- | demos/spkigen.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/demos/b64.c b/demos/b64.c index 113da89baf..efdd44457d 100644 --- a/demos/b64.c +++ b/demos/b64.c @@ -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; @@ -92,7 +91,6 @@ char **argv; char *inf=NULL,*outf=NULL; BIO *in=NULL,*out=NULL,*b64=NULL,*benc=NULL,*rbio=NULL,*wbio=NULL; #define PROG_NAME_SIZE 39 - char pname[PROG_NAME_SIZE+1]; apps_startup(); diff --git a/demos/spkigen.c b/demos/spkigen.c index d87881197c..2cd5dfea97 100644 --- a/demos/spkigen.c +++ b/demos/spkigen.c @@ -65,7 +65,8 @@ char *argv[]; fprintf(stderr,"please enter challenge string:"); fflush(stderr); - fgets(buf,120,stdin); + buf[0]='\0'; + fgets(buf,sizeof buf,stdin); i=strlen(buf); if (i > 0) buf[--i]='\0'; if (!ASN1_STRING_set((ASN1_STRING *)spki->spkac->challenge, |