mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
x509 version always has to be incremented. Baselines already committed.
This commit is contained in:
parent
a185631e1e
commit
ae165fb262
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ RecordVal* file_analysis::X509::ParseCertificate(X509Val* cert_val)
|
||||||
RecordVal* pX509Cert = new RecordVal(BifType::Record::X509::Certificate);
|
RecordVal* pX509Cert = new RecordVal(BifType::Record::X509::Certificate);
|
||||||
BIO *bio = BIO_new(BIO_s_mem());
|
BIO *bio = BIO_new(BIO_s_mem());
|
||||||
|
|
||||||
pX509Cert->Assign(0, new Val((uint64) X509_get_version(ssl_cert), TYPE_COUNT));
|
pX509Cert->Assign(0, new Val((uint64) X509_get_version(ssl_cert) + 1, TYPE_COUNT));
|
||||||
i2a_ASN1_INTEGER(bio, X509_get_serialNumber(ssl_cert));
|
i2a_ASN1_INTEGER(bio, X509_get_serialNumber(ssl_cert));
|
||||||
int len = BIO_read(bio, &(*buf), sizeof(buf));
|
int len = BIO_read(bio, &(*buf), sizeof(buf));
|
||||||
pX509Cert->Assign(1, new StringVal(len, buf));
|
pX509Cert->Assign(1, new StringVal(len, buf));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue