Certificate KeyUsage and ExtendedKeyUsage flags and relative pseudofunctions.
xprintf((
"-------- Begin Cert Info -----------\n"));
while (ci)
{
xprintf((
"certificate content:\r\n"));
if (ci->subjectAltNamesLen)
{
SubjectAltNameEnumerator_constructor(
&se, ci->subjectAltNamesPtr, ci->subjectAltNamesLen);
xprintf((
" subject's alternate DNS names/IP addresses:\n"));
for (SubjectAltNameEnumerator_getElement(&se, &s);
SubjectAltName_isValid(&s);
SubjectAltNameEnumerator_nextElement(&se, &s))
{
U16 l = SubjectAltName_getLen(&s);
U8 *tp = SubjectAltName_getPtr(&s);
if (SUBJECTALTNAME_IPADDRESS == SubjectAltName_getTag(&s))
{
while (l--)
{
if (l)
{
}
}
}
else if (SUBJECTALTNAME_DNSNAME == SubjectAltName_getTag(&s))
{
while (l--)
{
}
}
}
}
dn = &(ci->issuer);
if (ci->parent)
{
ci = ci->parent;
}
else
break;
}
xprintf((
"--------- End Cert Info ------------\n"));
#define xprintf(data)
The macro xprintf expands to function _xprintf if the code is compiled with XPRINTF set to 1.
Definition: selib.h:261
Certificate KeyUsage and ExtendedKeyUsage flags and relative pseudofunctions.
Definition: SharkSSL.h:776
U8 provinceLen
length in bytes of the field "country"
Definition: SharkSSL.h:789
const U8 * province
State or Province.
Definition: SharkSSL.h:778
U8 localityLen
length in bytes of the field "province"
Definition: SharkSSL.h:790
const U8 * organization
Organization Name (company or department)
Definition: SharkSSL.h:780
const U8 * commonName
Common Name is the Host + Domain Name (example: www.mycompany.com, where www is host and mycompany....
Definition: SharkSSL.h:785
const U8 * countryName
ISO3166 country code.
Definition: SharkSSL.h:777
U8 organizationLen
length in bytes of the field "locality"
Definition: SharkSSL.h:791
U8 commonNameLen
length in bytes of the field "unit"
Definition: SharkSSL.h:793
const U8 * locality
The city or town name.
Definition: SharkSSL.h:779
SubjectAltName Iterator.
Definition: SharkSslEx.h:52
SubjectAltName.
Definition: SharkSslEx.h:61