Minor spelling fixes.

This commit is contained in:
David Garske
2023-07-03 10:23:55 -07:00
parent a39a04fc88
commit f72a6b705f
3 changed files with 15 additions and 16 deletions

View File

@@ -283,7 +283,7 @@ static int PrintPem(FILE* fp, int pem_skip)
/* Usage lines to show. */ /* Usage lines to show. */
const char* usage[] = { const char* usage[] = {
"asn1 [OPTOIN]... [FILE]", "asn1 [OPTION]... [FILE]",
"Display a human-readable version of a DER/BER encoding.", "Display a human-readable version of a DER/BER encoding.",
"", "",
"Options:", "Options:",
@@ -317,8 +317,8 @@ static void Usage(void)
/* Main entry of ASN.1 printing program. /* Main entry of ASN.1 printing program.
* *
* @param [in] argc Count of command line argements. * @param [in] argc Count of command line arguments.
* @param [in] argv Command line argements. * @param [in] argv Command line arguments.
* @return 0 on success. * @return 0 on success.
* @return 1 on failure. * @return 1 on failure.
*/ */
@@ -430,7 +430,7 @@ int main(int argc, char* argv[])
Usage(); Usage();
return 0; return 0;
} }
/* Unknown option dectection. */ /* Unknown option detection. */
else if (argv[0][0] == '-') { else if (argv[0][0] == '-') {
fprintf(stderr, "Bad option: %s\n", argv[0]); fprintf(stderr, "Bad option: %s\n", argv[0]);
Usage(); Usage();
@@ -476,8 +476,8 @@ int main(int argc, char* argv[])
/* Main entry of ASN.1 printing program. /* Main entry of ASN.1 printing program.
* *
* @param [in] argc Count of command line argements. * @param [in] argc Count of command line arguments.
* @param [in] argv Command line argements. * @param [in] argv Command line arguments.
* @return 0 on success. * @return 0 on success.
* @return 1 on failure. * @return 1 on failure.
*/ */
@@ -489,6 +489,5 @@ int main(int argc, char* argv[])
return 0; return 0;
} }
#endif #endif /* WOLFSSL_ASN_PRINT */

View File

@@ -637,7 +637,7 @@ static int ConvDerToPem(unsigned char* in, word32 offset, word32 len,
/* Usage lines to show. */ /* Usage lines to show. */
const char* usage[] = { const char* usage[] = {
"pem [OPTOIN]...", "pem [OPTION]...",
"Convert to/from PEM and DER.", "Convert to/from PEM and DER.",
"", "",
"Options:", "Options:",
@@ -708,8 +708,8 @@ static void Usage(void)
/* Main entry of ASN.1 printing program. /* Main entry of ASN.1 printing program.
* *
* @param [in] argc Count of command line argements. * @param [in] argc Count of command line arguments.
* @param [in] argv Command line argements. * @param [in] argv Command line arguments.
* @return 0 on success. * @return 0 on success.
* @return 1 on failure. * @return 1 on failure.
*/ */
@@ -1021,8 +1021,8 @@ int main(int argc, char* argv[])
/* Main entry of ASN.1 printing program. /* Main entry of ASN.1 printing program.
* *
* @param [in] argc Count of command line argements. * @param [in] argc Count of command line arguments.
* @param [in] argv Command line argements. * @param [in] argv Command line arguments.
* @return 0 on success. * @return 0 on success.
* @return 1 on failure. * @return 1 on failure.
*/ */
@@ -1030,9 +1030,9 @@ int main(int argc, char* argv[])
{ {
(void)argc; (void)argc;
(void)argv; (void)argv;
fprintf(stderr, "ASN.1 Parsing and Printing not compiled in.\n"); fprintf(stderr, "PEM to DER conversion not compiled in.\n");
return 0; return 0;
} }
#endif #endif /* WOLFSSL_PEM_TO_DER */

View File

@@ -45417,7 +45417,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t certpiv_test(void)
0x0B, 0x01, 0x00, /* Nonce */ 0x0B, 0x01, 0x00, /* Nonce */
0x0C, 0x01, 0x00, /* Signed Nonce */ 0x0C, 0x01, 0x00, /* Signed Nonce */
}; };
/* PIV certificate data including certificate, info and error dectection. */ /* PIV certificate data including certificate, info and error detection. */
WOLFSSL_SMALL_STACK_STATIC const byte pivCert[] = { WOLFSSL_SMALL_STACK_STATIC const byte pivCert[] = {
0x53, 0x09, /* NIST PIV Cert */ 0x53, 0x09, /* NIST PIV Cert */
0x70, 0x02, /* Certificate */ 0x70, 0x02, /* Certificate */