mirror of
https://github.com/kakwa/uts-server
synced 2025-07-04 20:47:09 +02:00
the max serial size is 160 bits, not 160 bytes...
This commit is contained in:
parent
96587d3461
commit
c68c9b85ad
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ end:
|
||||||
// It's less painful to manage than an incremental serial stored in a file
|
// It's less painful to manage than an incremental serial stored in a file
|
||||||
// and a 150 bits size is more than enough to prevent collision.
|
// and a 150 bits size is more than enough to prevent collision.
|
||||||
static ASN1_INTEGER *serial_cb(TS_RESP_CTX *ctx, void *data42) {
|
static ASN1_INTEGER *serial_cb(TS_RESP_CTX *ctx, void *data42) {
|
||||||
unsigned char data[150] = {0};
|
unsigned char data[20] = {0};
|
||||||
RAND_bytes(data, sizeof(data));
|
RAND_bytes(data, sizeof(data));
|
||||||
// data[0] &= 0x7F;
|
// data[0] &= 0x7F;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue