зеркало из https://github.com/mozilla/pjs.git
Changing all MIN's and MAX's to PR_MIN, PR_MAX
This commit is contained in:
Родитель
00eecfe9ba
Коммит
0a5c0e59b9
|
@ -4139,7 +4139,7 @@ pk11_P_hash(SECOidTag alg, const SECItem *secret, const char *label,
|
||||||
if (status != SECSuccess)
|
if (status != SECSuccess)
|
||||||
goto loser;
|
goto loser;
|
||||||
|
|
||||||
chunk_size = MIN(outbuf_len, remaining);
|
chunk_size = PR_MIN(outbuf_len, remaining);
|
||||||
PORT_Memcpy(res, &outbuf, chunk_size);
|
PORT_Memcpy(res, &outbuf, chunk_size);
|
||||||
res += chunk_size;
|
res += chunk_size;
|
||||||
remaining -= chunk_size;
|
remaining -= chunk_size;
|
||||||
|
@ -4894,7 +4894,7 @@ key_and_mac_derive_fail:
|
||||||
break;
|
break;
|
||||||
case CKM_XOR_BASE_AND_DATA:
|
case CKM_XOR_BASE_AND_DATA:
|
||||||
stringPtr = (CK_KEY_DERIVATION_STRING_DATA *)pMechanism->pParameter;
|
stringPtr = (CK_KEY_DERIVATION_STRING_DATA *)pMechanism->pParameter;
|
||||||
tmpKeySize = MIN(att->attrib.ulValueLen,stringPtr->ulLen);
|
tmpKeySize = PR_MIN(att->attrib.ulValueLen,stringPtr->ulLen);
|
||||||
if (keySize == 0) keySize = tmpKeySize;
|
if (keySize == 0) keySize = tmpKeySize;
|
||||||
if (keySize > tmpKeySize) {
|
if (keySize > tmpKeySize) {
|
||||||
crv = CKR_TEMPLATE_INCONSISTENT;
|
crv = CKR_TEMPLATE_INCONSISTENT;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче