mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
Fix small OCSP parser bug.
It turns out that the serial number field in all events was never populated correctly. Instead, the previous field (issuer key hash) was re-read and repeated in all events.
This commit is contained in:
parent
5efaaf1368
commit
e1997144c2
10 changed files with 29 additions and 28 deletions
|
@ -71,6 +71,7 @@ void ocsp_add_cert_id(OCSP_CERTID *cert_id, val_list* vl, BIO* bio)
|
|||
BIO_reset(bio);
|
||||
|
||||
i2a_ASN1_INTEGER(bio, cert_id->serialNumber);
|
||||
len = BIO_read(bio, buf, sizeof(buf));
|
||||
vl->append(new StringVal(len, buf));
|
||||
BIO_reset(bio);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue