mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-09 03:41:41 +03:00
* Added diagnostic in case digest could not be identified.
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@240 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
parent
58790919c1
commit
b3fc32689d
11
ssl/asn1.c
11
ssl/asn1.c
@ -597,7 +597,18 @@ int asn1_signature_type(const uint8_t *cert,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (memcmp(sig_oid_prefix, &cert[*offset], sizeof(sig_oid_prefix)))
|
if (memcmp(sig_oid_prefix, &cert[*offset], sizeof(sig_oid_prefix)))
|
||||||
|
{
|
||||||
|
#ifdef CONFIG_SSL_FULL_MODE
|
||||||
|
int i;
|
||||||
|
printf("invalid digest: ");
|
||||||
|
|
||||||
|
for (i = 0; i < len; i++)
|
||||||
|
printf("%02x ", cert[*offset + i]);
|
||||||
|
|
||||||
|
printf("\n");
|
||||||
|
#endif
|
||||||
goto end_check_sig; /* unrecognised cert type */
|
goto end_check_sig; /* unrecognised cert type */
|
||||||
|
}
|
||||||
|
|
||||||
x509_ctx->sig_type = cert[*offset + sizeof(sig_oid_prefix)];
|
x509_ctx->sig_type = cert[*offset + sizeof(sig_oid_prefix)];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user