X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=demos%2Fspkigen.c;h=2cd5dfea970dd65223d10ce75c707940ac3f1ff5;hp=01fe6254f22622cee3a24d433b17cf6c6698da22;hb=55f39a199da4e6a12cfba5a01bb35ecf932e284a;hpb=7dfb0b774e6592dcbfe47015168a0ac8b44e2a17 diff --git a/demos/spkigen.c b/demos/spkigen.c index 01fe6254f2..2cd5dfea97 100644 --- a/demos/spkigen.c +++ b/demos/spkigen.c @@ -6,12 +6,12 @@ */ #include #include -#include "err.h" -#include "asn1.h" -#include "objects.h" -#include "evp.h" -#include "x509.h" -#include "pem.h" +#include +#include +#include +#include +#include +#include /* The following two don't exist in SSLeay but they are in here as * examples */ @@ -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,