mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
OCSP: split into two analysers in scriptland.
Instead of having an additional string argument specifying if we are sending a request or a reply, we now have an ANALYZER_OCSP_REQUEST and an ANALYZER_OCSP_REPLY
This commit is contained in:
parent
e1bcc4509f
commit
1b19ab78b6
4 changed files with 19 additions and 25 deletions
|
@ -23,18 +23,18 @@ public:
|
|||
virtual bool Undelivered(uint64 offset, uint64 len);
|
||||
virtual bool EndOfFile();
|
||||
|
||||
|
||||
static file_analysis::Analyzer* Instantiate(RecordVal* args, File* file);
|
||||
static file_analysis::Analyzer* InstantiateRequest(RecordVal* args, File* file);
|
||||
static file_analysis::Analyzer* InstantiateReply(RecordVal* args, File* file);
|
||||
|
||||
protected:
|
||||
OCSP(RecordVal* args, File* file, const string& ocsp_type);
|
||||
OCSP(RecordVal* args, File* file, bool request);
|
||||
|
||||
private:
|
||||
void ParseResponse(OCSP_RESPVal *, const char* fid = 0);
|
||||
void ParseRequest(OCSP_REQUEST *, const char* fid = 0);
|
||||
|
||||
std::string ocsp_data;
|
||||
std::string ocsp_type;
|
||||
bool request = false; // true if ocsp request, false if reply
|
||||
};
|
||||
|
||||
class OCSP_RESPVal: public OpaqueVal {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue