mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
initialize variables
This commit is contained in:
@@ -14668,9 +14668,9 @@ static int DecodeSEP(ASNGetData* dataASN, DecodedCert* cert)
|
|||||||
static int DecodeOtherHelper(ASNGetData* dataASN, DecodedCert* cert, int oid)
|
static int DecodeOtherHelper(ASNGetData* dataASN, DecodedCert* cert, int oid)
|
||||||
{
|
{
|
||||||
DNS_entry* entry = NULL;
|
DNS_entry* entry = NULL;
|
||||||
int ret;
|
int ret = 0;
|
||||||
word32 bufLen;
|
word32 bufLen = 0;
|
||||||
const char* buf;
|
const char* buf = NULL;
|
||||||
|
|
||||||
switch (oid) {
|
switch (oid) {
|
||||||
case FASCN_OID:
|
case FASCN_OID:
|
||||||
@@ -14681,13 +14681,17 @@ static int DecodeOtherHelper(ASNGetData* dataASN, DecodedCert* cert, int oid)
|
|||||||
bufLen = dataASN[OTHERNAMEASN_IDX_UPN].data.ref.length;
|
bufLen = dataASN[OTHERNAMEASN_IDX_UPN].data.ref.length;
|
||||||
buf = (const char*)dataASN[OTHERNAMEASN_IDX_UPN].data.ref.data;
|
buf = (const char*)dataASN[OTHERNAMEASN_IDX_UPN].data.ref.data;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
ret = ASN_UNKNOWN_OID_E;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ret == 0) {
|
||||||
ret = SetDNSEntry(cert, buf, bufLen, ASN_OTHER_TYPE, &entry);
|
ret = SetDNSEntry(cert, buf, bufLen, ASN_OTHER_TYPE, &entry);
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
entry->oidSum = oid;
|
entry->oidSum = oid;
|
||||||
AddDNSEntryToList(&cert->altNames, entry);
|
AddDNSEntryToList(&cert->altNames, entry);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif /* WOLFSSL_FPKI */
|
#endif /* WOLFSSL_FPKI */
|
||||||
|
Reference in New Issue
Block a user