mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Remove requestorName parameter of ocsp_request event
This field isn't publicly available via the OpenSSL 1.1 API, not used in the base scripts, and has no example in the test suit, so removing it is simpler than trying to support manually parsing it out of the raw data.
This commit is contained in:
parent
2e0edd7416
commit
bb55f82809
8 changed files with 13 additions and 27 deletions
|
@ -422,13 +422,10 @@ void file_analysis::OCSP::ParseRequest(OCSP_REQUEST* req, const char* fid)
|
|||
vl->append(GetFile()->GetVal()->Ref());
|
||||
|
||||
uint64 version = 0;
|
||||
GENERAL_NAME* general_name = nullptr;
|
||||
|
||||
#if ( OPENSSL_VERSION_NUMBER < 0x10100000L )
|
||||
if ( req->tbsRequest->version )
|
||||
version = (uint64)ASN1_INTEGER_get(req->tbsRequest->version);
|
||||
|
||||
general_name = req->tbsRequest->requestorName;
|
||||
#else
|
||||
version = parse_request_version(req);
|
||||
// TODO: try to parse out general name ?
|
||||
|
@ -438,16 +435,6 @@ void file_analysis::OCSP::ParseRequest(OCSP_REQUEST* req, const char* fid)
|
|||
|
||||
BIO *bio = BIO_new(BIO_s_mem());
|
||||
|
||||
if ( general_name )
|
||||
{
|
||||
GENERAL_NAME_print(bio, general_name);
|
||||
int len = BIO_read(bio, buf, sizeof(buf));
|
||||
vl->append(new StringVal(len, buf));
|
||||
BIO_reset(bio);
|
||||
}
|
||||
else
|
||||
vl->append(new StringVal(0, ""));
|
||||
|
||||
mgr.QueueEvent(ocsp_request, vl);
|
||||
|
||||
int req_count = OCSP_request_onereq_count(req);
|
||||
|
|
|
@ -7,13 +7,10 @@
|
|||
##
|
||||
## req: version: the version of the OCSP request. Typically 0 (Version 1).
|
||||
##
|
||||
## requestorName: name of the OCSP requestor. This attribute is optional; if
|
||||
## it is not set, an empty string is returned here.
|
||||
##
|
||||
## .. bro:see:: ocsp_request_certificate ocsp_response_status
|
||||
## ocsp_response_bytes ocsp_response_certificate ocsp_extension
|
||||
## x509_ocsp_ext_signed_certificate_timestamp
|
||||
event ocsp_request%(f: fa_file, version: count, requestorName: string%);
|
||||
event ocsp_request%(f: fa_file, version: count%);
|
||||
|
||||
## Event that is raised when encountering an OCSP request for a certificate,
|
||||
## e.g. in an HTTP connection. See :rfc:`6960` for more details.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue