Deprecate file analyzer construction methods taking raw RecordVal*

Replaced with versions that instead take IntrusivePtr
This commit is contained in:
Jon Siwek 2020-05-22 16:13:15 -07:00
parent ecb7c7c27e
commit 57a6069cd1
26 changed files with 164 additions and 79 deletions

View file

@ -88,8 +88,9 @@ public:
*/
static IntrusivePtr<RecordVal> ParseCertificate(X509Val* cert_val, File* file = nullptr);
static file_analysis::Analyzer* Instantiate(RecordVal* args, File* file)
{ return new X509(args, file); }
static file_analysis::Analyzer* Instantiate(IntrusivePtr<RecordVal> args,
File* file)
{ return new X509(std::move(args), file); }
/**
* Retrieves OpenSSL's representation of an X509 certificate store
@ -126,7 +127,7 @@ public:
{ cache_hit_callback = std::move(func); }
protected:
X509(RecordVal* args, File* file);
X509(IntrusivePtr<RecordVal> args, File* file);
private:
void ParseBasicConstraints(X509_EXTENSION* ex);