1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Ignore CA cert errors (caused by invalid signature types in cert bundles)

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@189 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2011-01-04 01:34:46 +00:00
parent f5dbc8875e
commit 9e082c868e
5 changed files with 23 additions and 21 deletions

View File

@ -961,17 +961,17 @@ static bigint *regular_square(BI_CTX *ctx, bigint *bi)
{
uint8_t c = 0;
long_comp xx = (long_comp)x[i]*x[j];
if (COMP_MAX-xx < xx)
if ((COMP_MAX-xx) < xx)
c = 1;
tmp = (xx<<1);
if (COMP_MAX-tmp < w[i+j])
if ((COMP_MAX-tmp) < w[i+j])
c = 1;
tmp += w[i+j];
if (COMP_MAX-tmp < carry)
if ((COMP_MAX-tmp) < carry)
c = 1;
tmp += carry;
@ -982,7 +982,7 @@ static bigint *regular_square(BI_CTX *ctx, bigint *bi)
carry += COMP_RADIX;
}
tmp = carry + w[i+t];
tmp = w[i+t] + carry;
w[i+t] = (comp)tmp;
w[i+t+1] = tmp >> COMP_BIT_SIZE;
} while (++i < t);