fixed CRL revoked certs enumeration
This commit is contained in:
@@ -307,20 +307,20 @@ static bool parse(private_x509_crl_t *this)
|
|||||||
/**
|
/**
|
||||||
* enumerator filter callback for create_enumerator
|
* enumerator filter callback for create_enumerator
|
||||||
*/
|
*/
|
||||||
static bool filter(void *data, revoked_t *revoked, chunk_t *serial, void *p2,
|
static bool filter(void *data, revoked_t **revoked, chunk_t *serial, void *p2,
|
||||||
time_t *date, void *p3, crl_reason_t *reason)
|
time_t *date, void *p3, crl_reason_t *reason)
|
||||||
{
|
{
|
||||||
if (serial)
|
if (serial)
|
||||||
{
|
{
|
||||||
*serial = revoked->serial;
|
*serial = (*revoked)->serial;
|
||||||
}
|
}
|
||||||
if (date)
|
if (date)
|
||||||
{
|
{
|
||||||
*date = revoked->date;
|
*date = (*revoked)->date;
|
||||||
}
|
}
|
||||||
if (reason)
|
if (reason)
|
||||||
{
|
{
|
||||||
*reason = revoked->reason;
|
*reason = (*revoked)->reason;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user