mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Add formatting fixes
This commit is contained in:
@ -17363,8 +17363,7 @@ static int DecodeAltNames(const byte* input, int sz, DecodedCert* cert)
|
|||||||
cert->weOwnAltNames = 1;
|
cert->weOwnAltNames = 1;
|
||||||
|
|
||||||
while (length > 0) {
|
while (length > 0) {
|
||||||
|
/* Verify idx can't overflow input buffer */
|
||||||
/* Verify idx can't overflow input buffer */
|
|
||||||
if (idx >= (word32)sz) {
|
if (idx >= (word32)sz) {
|
||||||
WOLFSSL_MSG("\tBad Index");
|
WOLFSSL_MSG("\tBad Index");
|
||||||
return BUFFER_E;
|
return BUFFER_E;
|
||||||
@ -17411,7 +17410,8 @@ static int DecodeAltNames(const byte* input, int sz, DecodedCert* cert)
|
|||||||
idx += strLen;
|
idx += strLen;
|
||||||
}
|
}
|
||||||
#ifndef IGNORE_NAME_CONSTRAINTS
|
#ifndef IGNORE_NAME_CONSTRAINTS
|
||||||
else if (current_byte == (ASN_CONTEXT_SPECIFIC | ASN_CONSTRUCTED | ASN_DIR_TYPE)) {
|
else if (current_byte ==
|
||||||
|
(ASN_CONTEXT_SPECIFIC | ASN_CONSTRUCTED | ASN_DIR_TYPE)) {
|
||||||
DNS_entry* dirEntry;
|
DNS_entry* dirEntry;
|
||||||
int strLen;
|
int strLen;
|
||||||
word32 lenStartIdx = idx;
|
word32 lenStartIdx = idx;
|
||||||
@ -17605,8 +17605,8 @@ static int DecodeAltNames(const byte* input, int sz, DecodedCert* cert)
|
|||||||
}
|
}
|
||||||
#endif /* WOLFSSL_QT || OPENSSL_ALL */
|
#endif /* WOLFSSL_QT || OPENSSL_ALL */
|
||||||
#endif /* IGNORE_NAME_CONSTRAINTS */
|
#endif /* IGNORE_NAME_CONSTRAINTS */
|
||||||
else if (current_byte == (ASN_CONTEXT_SPECIFIC | ASN_CONSTRUCTED | ASN_OTHER_TYPE))
|
else if (current_byte ==
|
||||||
{
|
(ASN_CONTEXT_SPECIFIC | ASN_CONSTRUCTED | ASN_OTHER_TYPE)) {
|
||||||
int strLen;
|
int strLen;
|
||||||
word32 lenStartIdx = idx;
|
word32 lenStartIdx = idx;
|
||||||
word32 oid = 0;
|
word32 oid = 0;
|
||||||
|
Reference in New Issue
Block a user