Skip to content

Commit f72a6b7

Browse files
committed
Minor spelling fixes.
1 parent a39a04f commit f72a6b7

3 files changed

Lines changed: 15 additions & 16 deletions

File tree

examples/asn1/asn1.c

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static int PrintPem(FILE* fp, int pem_skip)
283283

284284
/* Usage lines to show. */
285285
const char* usage[] = {
286-
"asn1 [OPTOIN]... [FILE]",
286+
"asn1 [OPTION]... [FILE]",
287287
"Display a human-readable version of a DER/BER encoding.",
288288
"",
289289
"Options:",
@@ -317,8 +317,8 @@ static void Usage(void)
317317

318318
/* Main entry of ASN.1 printing program.
319319
*
320-
* @param [in] argc Count of command line argements.
321-
* @param [in] argv Command line argements.
320+
* @param [in] argc Count of command line arguments.
321+
* @param [in] argv Command line arguments.
322322
* @return 0 on success.
323323
* @return 1 on failure.
324324
*/
@@ -430,7 +430,7 @@ int main(int argc, char* argv[])
430430
Usage();
431431
return 0;
432432
}
433-
/* Unknown option dectection. */
433+
/* Unknown option detection. */
434434
else if (argv[0][0] == '-') {
435435
fprintf(stderr, "Bad option: %s\n", argv[0]);
436436
Usage();
@@ -476,8 +476,8 @@ int main(int argc, char* argv[])
476476

477477
/* Main entry of ASN.1 printing program.
478478
*
479-
* @param [in] argc Count of command line argements.
480-
* @param [in] argv Command line argements.
479+
* @param [in] argc Count of command line arguments.
480+
* @param [in] argv Command line arguments.
481481
* @return 0 on success.
482482
* @return 1 on failure.
483483
*/
@@ -489,6 +489,5 @@ int main(int argc, char* argv[])
489489
return 0;
490490
}
491491

492-
#endif
493-
492+
#endif /* WOLFSSL_ASN_PRINT */
494493

examples/pem/pem.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ static int ConvDerToPem(unsigned char* in, word32 offset, word32 len,
637637

638638
/* Usage lines to show. */
639639
const char* usage[] = {
640-
"pem [OPTOIN]...",
640+
"pem [OPTION]...",
641641
"Convert to/from PEM and DER.",
642642
"",
643643
"Options:",
@@ -708,8 +708,8 @@ static void Usage(void)
708708

709709
/* Main entry of ASN.1 printing program.
710710
*
711-
* @param [in] argc Count of command line argements.
712-
* @param [in] argv Command line argements.
711+
* @param [in] argc Count of command line arguments.
712+
* @param [in] argv Command line arguments.
713713
* @return 0 on success.
714714
* @return 1 on failure.
715715
*/
@@ -1021,18 +1021,18 @@ int main(int argc, char* argv[])
10211021

10221022
/* Main entry of ASN.1 printing program.
10231023
*
1024-
* @param [in] argc Count of command line argements.
1025-
* @param [in] argv Command line argements.
1024+
* @param [in] argc Count of command line arguments.
1025+
* @param [in] argv Command line arguments.
10261026
* @return 0 on success.
10271027
* @return 1 on failure.
10281028
*/
10291029
int main(int argc, char* argv[])
10301030
{
10311031
(void)argc;
10321032
(void)argv;
1033-
fprintf(stderr, "ASN.1 Parsing and Printing not compiled in.\n");
1033+
fprintf(stderr, "PEM to DER conversion not compiled in.\n");
10341034
return 0;
10351035
}
10361036

1037-
#endif
1037+
#endif /* WOLFSSL_PEM_TO_DER */
10381038

wolfcrypt/test/test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45417,7 +45417,7 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t certpiv_test(void)
4541745417
0x0B, 0x01, 0x00, /* Nonce */
4541845418
0x0C, 0x01, 0x00, /* Signed Nonce */
4541945419
};
45420-
/* PIV certificate data including certificate, info and error dectection. */
45420+
/* PIV certificate data including certificate, info and error detection. */
4542145421
WOLFSSL_SMALL_STACK_STATIC const byte pivCert[] = {
4542245422
0x53, 0x09, /* NIST PIV Cert */
4542345423
0x70, 0x02, /* Certificate */

0 commit comments

Comments
 (0)