Use incremented serial of base CRL when signing delta CRL
This commit is contained in:
@@ -332,6 +332,8 @@ static int sign_crl()
|
|||||||
error = "loading base CRL failed";
|
error = "loading base CRL failed";
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
memcpy(crl_serial, lastcrl->get_serial(lastcrl).ptr,
|
||||||
|
min(lastcrl->get_serial(lastcrl).len, sizeof(crl_serial)));
|
||||||
baseCrlNumber = chunk_clone(lastcrl->get_serial(lastcrl));
|
baseCrlNumber = chunk_clone(lastcrl->get_serial(lastcrl));
|
||||||
DESTROY_IF((certificate_t*)lastcrl);
|
DESTROY_IF((certificate_t*)lastcrl);
|
||||||
lastcrl = NULL;
|
lastcrl = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user