Guard unused function with NO_SHA256 and address typo

pull/229/head
Kaleb Himes 2020-09-24 11:25:23 -06:00 committed by GitHub
parent 4272ff9ca3
commit 3baaadfc8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -24,11 +24,13 @@
#include <wolfssl/ssl.h>
#include <wolfssl/wolfcrypt/hash.h>
#ifndef NO_SHA256
void usage(void)
{
printf("./run <file to hash>\n");
exit(-99);
}
#endif
int main(int argc, char** argv)
{
@ -83,7 +85,7 @@ int main(int argc, char** argv)
fclose(inputStream);
XFREE(rawInput, NULL, DYNAMIC_TYPE_TMP_BUFFER);
#else
printf("Please enabling sha256 and then try again\n");
printf("Please enable sha256 and then try again\n");
#endif
return ret;
}