Commit graph

11634 commits

Author SHA1 Message Date
Jon Siwek
447b052d11 Deprecate opt_internal_val() 2020-05-14 17:23:20 -07:00
Jon Siwek
26f6fe01c8 Deprecate internal_func(), replace with zeek::lookup_func() 2020-05-14 17:23:20 -07:00
Jon Siwek
a83941d64d Deprecate internal_val() and internal_const_val()
Replaced with zeek::lookup_val() and zeek::lookup_const()
2020-05-14 17:23:19 -07:00
Jon Siwek
ac06259eec Deprecate internal_type(), replace with zeek::lookup_type() 2020-05-14 17:22:26 -07:00
Jon Siwek
32b895f4ba Deprecate ID::ID_Val(), replace with ID::GetVal() 2020-05-14 17:18:00 -07:00
Jon Siwek
16a8bf3318 Use std::move in some zeekygen::Manager methods 2020-05-14 17:18:00 -07:00
Jon Siwek
4af1a26b1f Add Val TypeType constructor taking an IntrusivePtr 2020-05-14 17:18:00 -07:00
Jon Siwek
3f07c57523 Deprecate ID::Type(), replace with GetType() 2020-05-14 17:18:00 -07:00
Jon Siwek
6e647416d5 Deprecate ID::AsType(), add ID::IsType() and ID::GetType() 2020-05-14 17:18:00 -07:00
Jon Siwek
f26904e031 Deprecate BroType::YieldType(), replace with Yield() 2020-05-14 17:18:00 -07:00
Jon Siwek
bb25f5d568 Change base_type() to return const-ref, deprecate base_type_no_ref() 2020-05-14 17:18:00 -07:00
Jon Siwek
2aa84eb86e Deprecate BroType::GetField() and BroType::HasField() 2020-05-14 17:18:00 -07:00
Jon Siwek
103fed9f01 Deprecate RecordType::FieldType(), replace with GetFieldType() 2020-05-14 17:18:00 -07:00
Jon Siwek
455fc29b1a Migrate TypeList to store IntrusivePtrs
This changes return types of TypeList::Types() and
IndexType::IndexTypes() to return std::vector instead of type_list*
2020-05-14 17:18:00 -07:00
Jon Siwek
011866a908 Deprecate TypeList::PureType(), replace with TypeList::GetPureType() 2020-05-14 17:18:00 -07:00
Jon Siwek
9ab7150883 Deprecate SetType::SetElements(), replace with SetType::Elements() 2020-05-14 17:18:00 -07:00
Jon Siwek
0f59b80d66 Remove unused TableType::ExpandRecordIndex() 2020-05-14 17:18:00 -07:00
Jon Siwek
6a1e4d61d1 Add cast_intrusive() and make use of it in two spots 2020-05-14 17:18:00 -07:00
Jon Siwek
c6f2e35af0 Give make_intrusive() access to protected EnumVal ctor 2020-05-14 17:18:00 -07:00
Jon Siwek
f512ae023e Remove two superfluous IntrusivePtr NewRefs in Type.cc 2020-05-14 17:18:00 -07:00
Jon Siwek
89dd668aff Change BroType::ShallowClone() to return IntrusivePtr 2020-05-14 17:18:00 -07:00
Jon Siwek
b05e5c7686 Migrate IP.cc to use IntrusivePtr 2020-05-14 17:18:00 -07:00
Jon Siwek
a60e5e9582 Migrate SMB analyzer to use IntrusivePtr
Deprecates the utf16_bytestring_to_utf8_val() function with replacement
being utf16_to_utf8_val().
2020-05-14 17:18:00 -07:00
Jon Siwek
ad6dbada71 Migrate ARP analyzer to use IntrusivePtr 2020-05-14 17:18:00 -07:00
Jon Siwek
61b75ddd02 Migrate HTTP/MIME analyzers to use IntrusivePtr 2020-05-14 17:18:00 -07:00
Jon Siwek
46e27bbf7d Migrate ICMP analyzer to use IntrusivePtr 2020-05-14 17:18:00 -07:00
Jon Siwek
0f2b176f75 Migrate DNS analyzer to use IntrusivePtr 2020-05-14 17:18:00 -07:00
Jon Siwek
1abed4fd4c Migrate Tag classes to use IntrusivePtr
Deprecates various methods that previously took raw pointers
2020-05-14 17:18:00 -07:00
Jon Siwek
b096e552d3 Deprecate TableVal::ConvertToList() and TableVal::ConvertToPureList()
Replaced with ToListVal() and ToPureListVal() that return IntrusivePtr
2020-05-14 17:18:00 -07:00
Jon Siwek
5f57ceb70a Switch ListVal to store IntrusivePtrs
* Deprecates ListVal::Index() methods and replaces with ListVal::Idx()

* Replaces ListVal::Vals() method with one that returns
  std::vector<IntrusivePtr<Val>> rather than val_list
2020-05-14 17:18:00 -07:00
Jon Siwek
b422f68b88 Deprecant ListVal::Append(Val*) and add IntrusivePtr version 2020-05-14 17:18:00 -07:00
Jon Siwek
df65d1e829 Deprecate ListVal::ConvertToSet(), add ListVal::ToSetVal() 2020-05-14 17:18:00 -07:00
Jon Siwek
2cfbbd8cdb Deprecate TunnelEncapsulation BuildRecordVal/BuildVectorVal methods
Replaced with ToVal methods that return IntrusivePtr
2020-05-14 17:18:00 -07:00
Jon Siwek
61649d5da7 Deprecate various IP/packet header Val-building methods
And supply new alternatives that use IntrusivePtr
2020-05-14 17:18:00 -07:00
Jon Siwek
457454bb80 Update submodule(s)
[nomail]
2020-05-14 17:10:57 -07:00
Jon Siwek
6c19229eef Update external testing repo commit files 2020-05-14 17:02:12 -07:00
Noah Treuhaft
2e5f96f5a9 Replace bzero() with memset() 2020-05-14 16:57:27 -07:00
Johanna Amann
62206825e4 Update submodule
[nomail]
2020-05-13 23:04:50 +00:00
Johanna Amann
14671f822f Update submodule
[nomail]
2020-05-13 22:50:10 +00:00
Johanna Amann
2aeb3d8e39 Merge remote-tracking branch 'origin/topic/timw/906-find-all-urls-regex'
* origin/topic/timw/906-find-all-urls-regex:
  Restore previous url scheme capture group
  GH-906: Fix the regex in url.zeek to better match for find_all_urls
2020-05-13 15:05:54 -07:00
Tim Wojtulewicz
323dc29e81 Update submodules 2020-05-13 14:24:13 -07:00
Tim Wojtulewicz
2b668a6c1f Merge remote-tracking branch 'origin/topic/johanna/hash-unification'
* origin/topic/johanna/hash-unification:
  Hash unification: address PR feedback
  Update architecture checks for highwayhash
  Highwayhas: unbreak 32 bit compiles
  Update external test suites for hash changes.
  Hashing: Remove unnecessary include
  Add highwayhash in a more cmake-y way
  Remove highwayhash submodule.
  Switch file UID hashing from md5 to highwayhash.
  Switch most internal md5 calls to digest calls.
  Start refactoring hashing.
  Introduce calculate_digest convenience function
  Remove the siphash->hmac-md5 switch after 36 bytes.
  Fix plugin compile problems with highwayhash
  Replace siphash with Google implementation
2020-05-13 13:49:56 -07:00
Jon Siwek
c55bbcfcda Merge remote-tracking branch 'origin/topic/timw/disable-broker-tests'
* origin/topic/timw/disable-broker-tests:
  Disable broker tests from building on the CI
  Disable broker documentation examples if disabling broker tests
2020-05-13 11:16:30 -07:00
Johanna Amann
892023ed9a Merge remote-tracking branch 'origin/master' into topic/johanna/hash-unification
* origin/master:
  Use zeek::detail namespace for fuzzer utils
  Set terminating flag during fuzzer cleanup
  Add missing include to standalone fuzzer driver
  Improve standalone fuzzer driver error messages
  Test fuzzers against seed corpus under CI ASan build
  Update fuzzing README with OSS-Fuzz integration notes
  Link fuzzers against shared library to reduce executable sizes
  Improve FuzzBuffer chunking
  Fix compiler warning in standalone fuzzer driver
  Adjust minor fuzzing documentation
  Exit immediately after running unit tests
  Add OSS-Fuzz Zeek script search path to fuzzers
  Assume libFuzzer when LIB_FUZZING_ENGINE file doesn't exist
  Change handling of LIB_FUZZING_ENGINE
  Change --enable-fuzzing to --enable-fuzzers
  Add standalone driver for fuzz targets
  Add basic structure for fuzzing targets
2020-05-13 14:19:44 +00:00
Johanna Amann
ce8b121e12 Hash unification: address PR feedback 2020-05-13 14:07:59 +00:00
Tim Wojtulewicz
82978a8860 Merge remote-tracking branch 'origin/topic/jsiwek/fuzzing'
* origin/topic/jsiwek/fuzzing:
  Use zeek::detail namespace for fuzzer utils
  Set terminating flag during fuzzer cleanup
  Add missing include to standalone fuzzer driver
  Improve standalone fuzzer driver error messages
  Test fuzzers against seed corpus under CI ASan build
  Update fuzzing README with OSS-Fuzz integration notes
  Link fuzzers against shared library to reduce executable sizes
  Improve FuzzBuffer chunking
  Fix compiler warning in standalone fuzzer driver
  Adjust minor fuzzing documentation
  Exit immediately after running unit tests
  Add OSS-Fuzz Zeek script search path to fuzzers
  Assume libFuzzer when LIB_FUZZING_ENGINE file doesn't exist
  Change handling of LIB_FUZZING_ENGINE
  Change --enable-fuzzing to --enable-fuzzers
  Add standalone driver for fuzz targets
  Add basic structure for fuzzing targets
2020-05-12 18:53:06 -07:00
Tim Wojtulewicz
6e8053b7d1 Disable broker tests from building on the CI
This results in a ~10% reduction in build time.
2020-05-12 12:21:39 -07:00
Tim Wojtulewicz
63f8897e10 Disable broker documentation examples if disabling broker tests 2020-05-12 12:21:39 -07:00
Johanna Amann
7f137b7d50 Update architecture checks for highwayhash
Now we use cmake to determine which compiler flags are set to
determine which implementation of highwayhash to compile. This should
be much more robust.

Also - fix missing include on old ubuntus.
2020-05-12 12:03:10 -07:00
Johanna Amann
fd5e1ae42a Highwayhas: unbreak 32 bit compiles 2020-05-11 22:12:55 -07:00