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:
Johanna Amann 2017-08-01 16:29:16 -07:00
parent db15773c09
commit d5678418da
7 changed files with 23 additions and 11 deletions

View file

@ -118,6 +118,12 @@ string Manager::DataIn(const u_char* data, uint64 len, uint64 offset,
if ( ! file )
return "";
// This only has any effect when
// * called for the first time for a file
// * being called before file->DataIn is called for the first time (before data is
// added to the bof buffer).
// Afterwards SetMime just ignores what is passed to it. Thus this only has effect during
// the first Manager::DataIn call for each file.
if ( ! mime_type.empty() )
file->SetMime(mime_type);