use first 64 bits of SERIAL number

This commit is contained in:
Todd A Ouska
2011-03-22 08:15:03 -07:00
parent 680358abe1
commit c068592799
3 changed files with 5 additions and 5 deletions

View File

@@ -880,7 +880,7 @@ static int GetCertHeader(DecodedCert* cert, word32 inSz)
len = mp_unsigned_bin_size(&mpi);
if (len > SERIAL_SIZE)
ret = MP_TO_E;
len = SERIAL_SIZE; /* use first 64 bits for unique id */
if (mp_to_unsigned_bin(&mpi, cert->serial + (SERIAL_SIZE - len)) != MP_OKAY)
ret = MP_TO_E;