mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48:20 +00:00
SSL SCT/OCSP: small fixes by robin; mostly update comments.
SetMime now only works on the first call (as it was documented) and unused code was used from one of the x.509 functions.
This commit is contained in:
parent
db15773c09
commit
d5678418da
7 changed files with 23 additions and 11 deletions
|
@ -344,6 +344,9 @@ clean_up:
|
|||
|
||||
void file_analysis::OCSP::ParseExtensionsSpecific(X509_EXTENSION* ex, bool global, ASN1_OBJECT* ext_asn, const char* oid)
|
||||
{
|
||||
// In OpenSSL 1.0.2+, we can get the extension by using NID_ct_cert_scts.
|
||||
// In OpenSSL <= 1.0.1, this is not yet defined yet, so we have to manually
|
||||
// look it up by performing a string comparison on the oid.
|
||||
#ifdef NID_ct_cert_scts
|
||||
if ( OBJ_obj2nid(ext_asn) == NID_ct_cert_scts )
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue