commit | c877bec5539dedd6737b243c6e1f0968d02ea497 | [log] [tgz] |
---|---|---|
author | Stefan Berger <stefanb@linux.ibm.com> | Tue Aug 22 18:46:29 2023 -0400 |
committer | Stefan Berger <stefanb@us.ibm.com> | Tue Aug 22 21:21:03 2023 -0400 |
tree | 69a861a0629a6e3e3db7755d41cba8a5ce03b360 | |
parent | 605e0ce8800201fca2a9a37dea5e99be7bdb2233 [diff] |
swtpm_cert: Add support for serial numbers up to 20 bytes long x509 certificate serial numbers can be up to 20 bytes long. Support this via gmp library. A serial number must not have its most significant bit set, which would indicate a negative number. If this is the case, insert '0' as the first byte. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>