Spelling and whitespace cleanups.

This commit is contained in:
David Garske
2022-09-23 13:57:33 -07:00
parent b42631c721
commit 606f58a851
5 changed files with 22 additions and 22 deletions

View File

@@ -11,7 +11,7 @@
#ifdef __aarch64__ #ifdef __aarch64__
#if !defined(__clang__) || \ #if !defined(__clang__) || \
(defined(__clang__) && defined(__clang_major__) && __clang_major__ >= 5) (defined(__clang__) && defined(__clang_major__) && __clang_major__ >= 5)
/* older clang v4 has issue with inline assembly contraints */ /* older clang v4 has issue with inline assembly constraints */
#define WOLFSSL_ARMASM #define WOLFSSL_ARMASM
#endif #endif
#endif #endif

View File

@@ -6031,7 +6031,7 @@ static int X509PrintPubKey(WOLFSSL_BIO* bio, WOLFSSL_X509* x509, int indent)
return WOLFSSL_FAILURE; return WOLFSSL_FAILURE;
break; break;
#endif #endif
default: default:
WOLFSSL_MSG("Unknown key type"); WOLFSSL_MSG("Unknown key type");
return WOLFSSL_FAILURE; return WOLFSSL_FAILURE;
} }

View File

@@ -401,7 +401,7 @@ static word32 SizeASNLength(word32 length)
#define DECL_ASNGETDATA(name, cnt) \ #define DECL_ASNGETDATA(name, cnt) \
ASNGetData name[cnt] ASNGetData name[cnt]
/* No implementation as declartion is static. /* No implementation as declaration is static.
* *
* @param [in] name Variable name to declare. * @param [in] name Variable name to declare.
* @param [in] cnt Number of elements required. * @param [in] cnt Number of elements required.
@@ -420,7 +420,7 @@ static word32 SizeASNLength(word32 length)
#define CALLOC_ASNGETDATA(name, cnt, err, heap) \ #define CALLOC_ASNGETDATA(name, cnt, err, heap) \
XMEMSET(name, 0, sizeof(name)) XMEMSET(name, 0, sizeof(name))
/* No implementation as declartion is static. /* No implementation as declaration is static.
* *
* @param [in] name Variable name to declare. * @param [in] name Variable name to declare.
* @param [in] heap Dynamic memory allocation hint. * @param [in] heap Dynamic memory allocation hint.
@@ -435,7 +435,7 @@ static word32 SizeASNLength(word32 length)
#define DECL_ASNSETDATA(name, cnt) \ #define DECL_ASNSETDATA(name, cnt) \
ASNSetData name[cnt] ASNSetData name[cnt]
/* No implementation as declartion is static. /* No implementation as declaration is static.
* *
* @param [in] name Variable name to declare. * @param [in] name Variable name to declare.
* @param [in] cnt Number of elements required. * @param [in] cnt Number of elements required.
@@ -454,7 +454,7 @@ static word32 SizeASNLength(word32 length)
#define CALLOC_ASNSETDATA(name, cnt, err, heap) \ #define CALLOC_ASNSETDATA(name, cnt, err, heap) \
XMEMSET(name, 0, sizeof(name)) XMEMSET(name, 0, sizeof(name))
/* No implementation as declartion is static. /* No implementation as declaration is static.
* *
* @param [in] name Variable name to declare. * @param [in] name Variable name to declare.
* @param [in] heap Dynamic memory allocation hint. * @param [in] heap Dynamic memory allocation hint.
@@ -2107,7 +2107,7 @@ int GetLength_ex(const byte* input, word32* inOutIdx, int* len, word32 maxIdx,
/* Check if the first byte indicates the count of bytes. */ /* Check if the first byte indicates the count of bytes. */
if (b >= ASN_LONG_LENGTH) { if (b >= ASN_LONG_LENGTH) {
/* Bottom 7 bits are the number of bytes to calculate length with. /* Bottom 7 bits are the number of bytes to calculate length with.
* Note: 0 indicates indefinte length encoding *not* 0 bytes of length. * Note: 0 indicates indefinite length encoding *not* 0 bytes of length.
*/ */
word32 bytes = b & 0x7F; word32 bytes = b & 0x7F;
int minLen; int minLen;
@@ -3680,7 +3680,7 @@ int wc_BerToDer(const byte* ber, word32 berSz, byte* der, word32* derSz)
/* Set the header length to include the length field */ /* Set the header length to include the length field */
IndefItems_UpdateHeaderLen(indefItems); IndefItems_UpdateHeaderLen(indefItems);
/* Go to indefinte parent item */ /* Go to indefinite parent item */
IndefItems_Up(indefItems); IndefItems_Up(indefItems);
} }
} }
@@ -3698,7 +3698,7 @@ int wc_BerToDer(const byte* ber, word32 berSz, byte* der, word32* derSz)
/* Finish calculation of data length for indefinite item */ /* Finish calculation of data length for indefinite item */
IndefItems_CalcLength(indefItems); IndefItems_CalcLength(indefItems);
/* Go to indefinte parent item */ /* Go to indefinite parent item */
IndefItems_Up(indefItems); IndefItems_Up(indefItems);
} }
else { else {
@@ -18746,7 +18746,7 @@ static int DecodeSubtreeGeneralName(const byte* input, int sz, byte tag,
} }
#endif #endif
/* Decode a subtree of a name contraint in a certificate. /* Decode a subtree of a name constraints in a certificate.
* *
* X.509: RFC 5280, 4.2.1.10 - Name Contraints. * X.509: RFC 5280, 4.2.1.10 - Name Contraints.
* *