Commit Graph

614 Commits (dev)

Author SHA1 Message Date
Jeff Becker f4520ac920
make decaying hashset use llarp::Time_t and move unit tests to use catch2 4 years ago
Jason Rhinelander 18a2444c50 Add gcc5 workaround for catch2 GENERATE(table
stdlibc++'s before v6 erroneously have the tuple constructor as
explicit, which causes the initializer lists here to fail.
4 years ago
Jason Rhinelander 1232f34f90 Rewrite generate expressions to make clang-7 happy 4 years ago
Jason Rhinelander 0839c16f19 Final abseil purge
Bye-bye Google Boost.
4 years ago
Jason Rhinelander 46242ba69b TrimWhiteSpace -> TrimWhitespace
Fix my dumb initial capitalization choice.
4 years ago
Jason Rhinelander 74d4afad51 Remove metric config parsing 4 years ago
Jason Rhinelander 54186c4a89 Replace absl string_view with string_view from lokimq
When we add loki-mq has a dependency we can just alias it, but for now
it's easier to copy the header than add the whole submodule library.
4 years ago
Jason Rhinelander 561bfe24c0 Add cmake "check" target to run all tests
Renames the cmake Catch2 test target to "catch" (instead of "check") and
adds a "rungtest" for gtest (because the "gtest" target is already taken
by the gtest library itself), and then repurposes the "check" target to
run both test suite binaries.

Also updates the top-level Makefile to do the same thing, except that
there the gtest target is just "gtest" instead of "rungtest".
4 years ago
Jason Rhinelander 98c34d995b De-abseil: Add our own llarp::TrimWhiteSpace
Adds a TrimWhiteSpace instead of using abseil's.

Adds Catch2 tests for it, and also converts the existing str tests to
catch (which look much, much nicer than the gtest ones).
4 years ago
Jason Rhinelander fe61367a87 Vastly simplified llarp::util::memFn
There is a huge pile of unnecessary machinery here that can be solved
with a few lambdas and some member function pointer type deduction.
4 years ago
Jason Rhinelander b4440094b0 De-abseil, part 2: mutex, locks, (most) time
- util::Mutex is now a std::shared_timed_mutex, which is capable of
  exclusive and shared locks.

- util::Lock is still present as a std::lock_guard<util::Mutex>.

- the locking annotations are preserved, but updated to the latest
  supported by clang rather than using abseil's older/deprecated ones.

- ACQUIRE_LOCK macro is gone since we don't pass mutexes by pointer into
  locks anymore (WTF abseil).

- ReleasableLock is gone.  Instead there are now some llarp::util helper
  methods to obtain unique and/or shared locks:
    - `auto lock = util::unique_lock(mutex);` gets an RAII-but-also
      unlockable object (std::unique_lock<T>, with T inferred from
      `mutex`).
    - `auto lock = util::shared_lock(mutex);` gets an RAII shared (i.e.
      "reader") lock of the mutex.
    - `auto lock = util::unique_locks(mutex1, mutex2, mutex3);` can be
      used to atomically lock multiple mutexes at once (returning a
      tuple of the locks).
  This are templated on the mutex which makes them a bit more flexible
  than using a concrete type: they can be used for any type of lockable
  mutex, not only util::Mutex.  (Some of the code here uses them for
  getting locks around a std::mutex).  Until C++17, using the RAII types
  is painfully verbose:

  ```C++
  // pre-C++17 - needing to figure out the mutex type here is annoying:
  std::unique_lock<util::Mutex> lock(mutex);
  // pre-C++17 and even more verbose (but at least the type isn't needed):
  std::unique_lock<decltype(mutex)> lock(mutex);
  // our compromise:
  auto lock = util::unique_lock(mutex);
  // C++17:
  std::unique_lock lock(mutex);
  ```

  All of these functions will also warn (under gcc or clang) if you
  discard the return value.  You can also do fancy things like
  `auto l = util::unique_lock(mutex, std::adopt_lock)` (which lets a
  lock take over an already-locked mutex).

- metrics code is gone, which also removes a big pile of code that was
  only used by metrics:
  - llarp::util::Scheduler
  - llarp:🧵:TimerQueue
  - llarp::util::Stopwatch
4 years ago
Stephen Shelton 16be86a5c3
Merge pull request #1116 from tewinget/short-path-names
path builder prints hops, rest print short name
4 years ago
Thomas Winget fc56a018e5 path builder prints hops, rest print short name 4 years ago
Jeff 7c5a721457
Merge pull request #1114 from notlesh/redundant-introset-lookup-improvements-2020-02-20
Redundant introset lookup improvements
4 years ago
Stephen Shelton 0429bafbb3
Merge pull request #1111 from notlesh/redundant-introset-propagation-2020-02-19
Redundant introset propagation
4 years ago
Stephen Shelton 66cb30fa58
Refactor: remove recursionDepth from DHT lookups 4 years ago
Stephen Shelton dff9aeb250
Propagate Introset publishing redundantly 4 years ago
Jason Rhinelander ac1486d0be Replace absl::optional with optional-lite
Step 1 of removing abseil from lokinet.

For the most part this is a drop-in replacement, but there are also a
few changes here to the JSONRPC layer that were needed to work around
current gcc 10 dev snapshot:

- JSONRPC returns a json now instead of an optional<json>.  It doesn't
  make any sense to have a json rpc call that just closes the connection
  with returning anything.  Invoked functions can return a null (default
  constructed) result now if they don't have anything to return (such a
  null value won't be added as "result").
4 years ago
Jeff Becker 827ca0bda7
make catch2 a submodule 4 years ago
Stephen Shelton 7842889fef Add NodeDB tests around FindClosestTo() 4 years ago
Stephen Shelton 9dfcfbc3ac Bencode/decode relayOrder in lexigraphical order, make it uint64_t 4 years ago
Stephen Shelton 906803e387 Refactor DHT introset lookups to use redundant lookup strategy 4 years ago
Jeff Becker e35d17764a * add path::Path::UniqueEndpointSet_t
* start using check2 for new unit tests
* unit test for path::Path::UniqueEndpointSet_t
4 years ago
Jason Rhinelander 8aacc2d317 Update deprecated gtest macros
gtest ~renamed INSTANTIATE_TEST_CASE_P to INSTANTIATE_TEST_SUITE_P and
added a "backwards compatibility" shim, but the shim fails at compile
time if you pass in an empty fourth argument.
4 years ago
Jeff 186dba45cb
Merge pull request #956 from notlesh/km-testing
Implement KeyManager tests
4 years ago
Jason Rhinelander 0497fb9ccb Another big-endian fix 4 years ago
Jason Rhinelander 5f642e4f01 Zero-initialize test array 4 years ago
Jeff 8230b1152e
Merge pull request #1072 from majestrate/2020-01-25-router-version
add router version
4 years ago
Jeff Becker 1318846a08
test/service/test_llarp_service_identity.cpp:
* remove failing irrelevent test
* add expect_call in EnsureKeys to match expected bevahior
4 years ago
Stephen Shelton 8921125924
Fix buffer overflow when version encodes too many integers 4 years ago
Jason Rhinelander 46f3459b79 Fixed EncryptedIntroSet signing to use PrivateKey
We can generate both root and derived signatures from a PrivateKey, but
only root from a SecretKey, so just change it to use a PrivateKey.
4 years ago
Jason Rhinelander cd8f26deff Use hash instead of random for signing hash data
This makes PrivateKey store both the key followed by the hash.  For
PrivateKeys based on SecretKeys this just means the second half of the
SHA-512 of the seed, and makes a PrivateKey constructed from a SecretKey
give an identical signature to signing directly with sodium.

For derived keys we use a ShortHash of the root key's signing hash
concatenated with the publicly known hash value, so that our derived key
signing hash will be different from the root signing hash and also
different for different derivation parameters.

This also changed one of the asserts in crypto_noop, but upon closer
inspection the copying of the secret key into the signature seems really
wrong, so just changed them to fill with 0s.
4 years ago
Jeff Becker 9153f726c5 const correctness 4 years ago
Stephen Shelton cfabe72587
Fix RouterVersion::IsEmpty() and RouterVersion::Clear() 4 years ago
Stephen Shelton f0571a9f2c
Fix IsCompatableWith() logic WRT emptyRouterVersion, add unit tests 4 years ago
Thomas Winget a487982c49 initial implementation of blinded sign -- not working yet 4 years ago
Jason Rhinelander 860c5efd47 Derived key fixes
The reason things weren't working here is because libsodium does
something completely unintuitive and called the seed the "secret key"
when it isn't, it's the seed.

This adds a new PrivateKey class (alongside the existing SecretKey and
PubKey) that holds just a private key value but no seed -- which we need
to do because there is no way we can get a seed after calculating a
derived keypair.

With these changes, we now generate exactly the same keys and subkeys as
Tor (and a new test case uses values generated in Tor to verify this).

This is incomplete -- the subkey signing code is still not implemented;
it has to be adapted to create a signature from a PrivateKey rather than
a SecretKey which will probably requiring working around/reimplementing
some of what libsodium does for creating a signature since it expects
"secret keys" i.e. the seed.
4 years ago
Jeff Becker 0f13591802
does not work 4 years ago
Jeff Becker 99eb7726ff
initial dht key blinding 4 years ago
Jeff Becker 9efd796145
initial wack at 0.7.0 dht fixes 4 years ago
Jeff Becker 2c0dc12f39
refactor single char variables in DHT (mostly) 4 years ago
Jeff Becker 3b66cf6e75
dht fixes, disable iterative lookups on clients, revert "fixes" from 0.6.3, pass in recursion depth from introset lookup 4 years ago
Stephen Shelton 9a65f19bb0
Add test to ensure config loading impacts runtime log level 4 years ago
Stephen Shelton 43998f97c8
Add unit tests for LogLevelToName and LogLevelToString 4 years ago
Jeff Becker 28752f85b7
improve test cases 4 years ago
Jeff Becker 8d11519eb2
unit tests for logging levels 4 years ago
Rick V 636957f3f9
happy new year 4 years ago
Jeff Becker 562f3f07ab
add unit test for decaying hash set 4 years ago
Jason Rhinelander 1b710455a7 Disallow AlignedBuffer < 8 bytes; add oddball buffer sizes 4 years ago
Jeff Becker 16c7e7dd33 fix unit tests 4 years ago
Thomas Winget f4c9e09d44 remove obsolete timer-related code 4 years ago
Rick V ccd936feb1
the internal windows toolchain _already_ provides a default manifest 4 years ago
Rick V fd6602bf05
fix versiontag 4 years ago
Rick V e144d9e762
fix test suite 4 years ago
Rick V 6d49ffd60b
include all platform dependencies transitively 4 years ago
Rick V e15c57c114
get ready for v0.6
bump version

don't ship the shared object
4 years ago
Jeff Becker 9fa2b5c92a
remove undeeded test case 4 years ago
Jeff Becker fcf0ae2b9e
prune unused files. 4 years ago
Stephen Shelton 332f33b049 Remove FS_LIB conditionals 4 years ago
Stephen Shelton e3c752f4ab Another attempt to make travis-ci's xenial happy 4 years ago
Stephen Shelton 0dbbf30de5 Fix for travis-ci xenial build 4 years ago
Stephen Shelton c303d438aa Prefer ASSERT_EQ over ASSERT_TRUE when appropriate 4 years ago
Jeff Becker 8455d5d1cf more cleanup 4 years ago
Jeff Becker 8f891c57b6
fix unit tests 4 years ago
Stephen Shelton c99ab0c9b7 Fix build 5 years ago
Stephen Shelton ef075a53dd Implement KeyManager tests 5 years ago
Jeff Becker 593f1e657a
make format and make tests compile 5 years ago
Stephen Shelton 2c6226f54a Backup SNApp keys when migrating to new ed25519 crypto 5 years ago
Stephen Shelton 11410a2748 Avoid trivial getters/setters in KeyManager 5 years ago
Stephen Shelton eb5184ee09 Reinstate link test / update to use KeyManager 5 years ago
Stephen Shelton 93b8832026
Merge branch 'dev' into private-keys-backup-support 5 years ago
Stephen Shelton 521ef9b5bb Handle link transport key in KeyManager 5 years ago
Jeff Becker 098915bb8e
add check for identity key validity 5 years ago
Stephen Shelton e8e2e21fa2 Reorganize priv key file loading a bit and hook KeyManager into Router 5 years ago
Jeff Becker ac686a9329
remove valgrind access errors 5 years ago
Jeff Becker 56dce90de9
add trace log level for tracking logic thread jobs 5 years ago
Stephen Shelton 1666498405 Replace bencode_write_version_entry with a more general-purpose function for writing bencoded dictionary entries 5 years ago
Jeff Becker b34caa3e26
make unit tests pass for iwp 5 years ago
Jeff Becker f16c9f9b5d
iot seems that logic thread didn't work the way i remember it should
make logic work the way it should
5 years ago
Jeff Becker c9f26c4911
call Router::PumpLL after every batch of packets from a link session 5 years ago
Jeff Becker 2cb15e7e0b
enable see2 when used 5 years ago
Jeff Becker f38240f945
devendor libsodium by default except for android 5 years ago
Jeff Becker 01c4a9c287
revert a few things 5 years ago
jeff 1cdd9ba13a add unit test for identity_keygen 5 years ago
jeff c3451fc77a remove log level change 5 years ago
jeff 32ed821763 Merge remote-tracking branch 'upstream/dev' into multithreaded-cryptography 5 years ago
Rick V 00d34709eb
bump to 0.5.2 5 years ago
Rick V bf2ecaa74a
bump to 0.5.1 5 years ago
jeff 1853b28590 remove libutp and all such code related to utp 5 years ago
jeff ac2a2aed1d gut libutp and finish making things compile and pass tests 5 years ago
Jeff Becker 4bf6882c8a
more async cryptography 5 years ago
Jeff 325b697e90
Merge pull request #787 from despair86/master
make build internally consistent, bump windows version to 0.5.0
5 years ago
Michael edd0ec398f
Move thread stuff to subdirectory 5 years ago
Michael 0950571313
Move metrics to subdirectory 5 years ago
Michael 4d8fe2a8a8
Move meta programming to subdirectory 5 years ago
Rick V 6205e96c36
move non-string version info to common header 5 years ago
Rick V 51279075d8
iconv 🅱roke 5 years ago
Rick V df430650ef
undo utf8 conversion 5 years ago
Rick V fb70d7afc9
bump version for release 5 years ago
Jeff 146d977945 make osx unit tests compile on old gcc 5 years ago
Jeff b42605d1ba
Merge pull request #783 from majestrate/iwp-redux
Add "new" (old) link protocol: IWP
5 years ago
Jeff Becker b5402dc6c3
Merge remote-tracking branch 'origin/master' into iwp-redux 5 years ago
Rick V b3a975ff8e
sun fix
fix testing on sun
5 years ago
Michael 70937ab503
Fix docker-compose isolated network 5 years ago
Jeff Becker 647f874d0f
ignore test on win32 5 years ago
Jeff Becker f8bf907f24
disable log spew 5 years ago
Jeff Becker 426ee41c46
initial iwp 5 years ago
Jeff Becker aea4542edd
more 5 years ago
Jeff Becker c1f33bb1ac
initial mempipe implementation 5 years ago
Jeff 10d7e7cb77
Merge branch 'master' into master 5 years ago
Michael f9e9227e19
Fix gcc trunk warnings 5 years ago
Rick V 5b0b6e4ae2
fix header case
do not use Microsoft <filesystem>
add build stamp to version resource if we're doing local CI
5 years ago
Jeff Becker 822f529be8
add link layer delivery feedback 5 years ago
Thomas Winget baf8019fe5 Refactor Router code into more classes
This commit refactors functionality from the Router class into separate,
dedicated classes.
There are a few behavior changes that came as a result of discussion on
what the correct behavior should be.
In addition, many things Router was previously doing can now be provided
callback functions to alert the calling point when the asynchronous
action completes, successfully or otherwise.
5 years ago
Jeff f154c9a0d0
Merge pull request #721 from majestrate/fix-dht-2019-07-19
handle dht case
5 years ago
Michael 52b9158a5a
fix test.rc 5 years ago
Michael e32470ae5a
Skip 3 tests on windows 5 years ago
Michael 5da5c77104
Delete ev loop tests 5 years ago
Michael ca4af6af89
fix test.rc 5 years ago
Michael 6ede15888e
Change manifest ids 5 years ago
Michael 91c1ba87cc
Change ConfigParser too 5 years ago
Michael 8fd4ceb55b
Don't use LoadFromString 5 years ago
Jeff Becker 1ee90f8852
do lookup for RC to neighboor even if we have them in our DHT buckets so we get an updated RC in reply 5 years ago
Michael 5cef2865bd
Fix Ubuntu builds 5 years ago
Jeff Becker fcc3c05124
Merge remote-tracking branch 'origin/master' into ipv6-tun 5 years ago
michael-loki 0cd9b4c380
Merge pull request #687 from michael-loki/config_env
Allow environment variable override of config
5 years ago
Jeff Becker 8ac9ef6f18
Merge remote-tracking branch 'origin/master' into ipv6-tun 5 years ago
Jeff Becker b9bcc2b775
make threadpool consice 5 years ago
Michael b01e5accbb
Add function to set threadname, and use from threadpool impl 5 years ago
Michael 3ce90b678e
Allow override of the rest of the config 5 years ago
Michael fbb83704a0
Allow override of some config via env variables 5 years ago
Jeff Becker 58005c5f81
Merge remote-tracking branch 'origin/master' into ipv6-tun 5 years ago
Michael f310160065
Fixup and add tests 5 years ago
Michael a2326efa37
Revert "Merge pull request #679 from tewinget/revert-config-refactor"
This reverts commit 2996a7f29c, reversing
changes made to 10df3bd4b3.
5 years ago
Thomas Winget d044d60101 Reverts #678 #677 and #669 with hashes:
10df3bd
766ece8
979f095

See those commits for further details
5 years ago
Michael 8c2d67f8f1
Fix tests 5 years ago
Michael bd78471dae
Move ini parser as well 5 years ago
Jeff Becker 5c61df08b5
Merge remote-tracking branch 'origin/master' into ipv6-tun 5 years ago
Michael 08609f9e5a
Rename message files 5 years ago
Michael 83bd9227a7
Move exit messages 5 years ago
Michael d6751e3eeb
Move subset of messages to right directory 5 years ago
Jeff Becker cd05fa6150
Merge remote-tracking branch 'origin/master' into ipv6-tun 5 years ago
Rick V 5092a1fa85
restore llarp_make_ev_loop() as we only use libuv now; separate function is now ded code 5 years ago
Jeff Becker dcefcd7879
Merge remote-tracking branch 'origin/master' into ipv6-tun 5 years ago
Jeff 3833cc32cf
Merge pull request #648 from michael-loki/move_publishers
Move local publishers to their own files
5 years ago
Michael 26e16d5389
Fix event loop tests post-libuv 5 years ago
Michael c0525f2ea3
Move local publishers to their own files 5 years ago
Jeff Becker 227f561ffc
Merge remote-tracking branch 'origin/master' into ipv6-tun 5 years ago
Michael 95646d2d87
Publish metric tags 5 years ago
Michael 7d4126407c
Introduce tags for metrics 5 years ago
Jeff Becker c60099002b
reverse dns for ipv6 5 years ago
Jeff Becker eb10638497
Merge branch 'master' into ipv6-tun 5 years ago
Jeff Becker 584cc61f8f
Merge remote-tracking branch 'origin/master' 5 years ago
Michael d244674339
Unfuck integer metrics 5 years ago
Michael 0a5ac10880
Unfuck metrics 5 years ago
Michael a1ef2ca342
Tidy up metric code 5 years ago
Jeff Becker 2403ab8f86
ipv6 5 years ago
Jeff Becker 32d73199e6
another fix for freebsd 5 years ago
Jeff Becker 223f2702d3
Merge branch 'fix-big-ooooofff' 5 years ago
Jeff Becker 4c7f8e8351
more libuv jizz 5 years ago
Michael 3822fe2341
Create util::MemFn and memFn to make binding callbacks easier 5 years ago
Jeff Becker 9deafa4cb8
use libuv 5 years ago
Michael 19802229ac
Update cmake to point to vendor dir 5 years ago
Michael f263ee1bcd
Move gtest to vendor dir 5 years ago
Michael cd86dcf1bd
Update LinkLayer tests to use no-op crypto 5 years ago
Michael a62655d501
Move tests to use top-level LlarpTest 5 years ago
Michael 491fee206b
Port code to use CryptoManager over passing Crypto pointers 5 years ago
Jeff Becker 9c96aecf3f
move llarp::Logic to std::shared_ptr
add sequence numbers to HSD messages

begin work on network isolation code

add more docs
5 years ago
Jeff 3bd1aa50ff
Merge pull request #616 from michael-loki/reader_removal
Replace dict_reader/list_reader with version which doesn't involve indirection
5 years ago
Rick V f0a4b93431
fix
(cherry picked from commit 0d2e1da774580917dcf6a05c6be81ebfe823adef)
5 years ago
Michael 7ca0927d8f
Replace dict_reader/list_reader with version which doesn't involve indirection 5 years ago
Michael a83be769e2
More explicit error when keyfile is not a valid file 5 years ago
Jeff Becker cd85bd2c2d
re-enable unit test 5 years ago
Jeff Becker 4bf2020839
whatever 5 years ago
Jeff Becker a8f307dd09
fuck 5 years ago
Jeff Becker 351c241c0f
more 5 years ago
Rick V 7788d6ec3c
fix windows
lto stuff remains for now
since native builds work

(cherry picked from commit 37814472af5e7c35d514bae16d19b08050765d52)

i'm not porting the UNIX-tier cppfs thing

(cherry picked from commit d6edbd789534d4fd0bce6c8c2418347cd80bebdb)

none of this had to be specified directly ffs

(cherry picked from commit 5dbefa7131a6fe0b2006c90ecdba7e466fdd1ecc)

stop breaking shit reee

(cherry picked from commit 14be89902ccc75a7fc21863593da393ca976d0d4)
5 years ago
Jeff Becker 241dba0476
fix dns for smaller domains 5 years ago
Jeff Becker 0cc8517bca
add error messages to ini parser and catch base cases. 5 years ago
Jeff Becker e060082441
hook every dns for .loki and .snode when applicable
make {n,h}uint{32,16}_t templated type.
5 years ago
Jeff Becker fea64eaf12
handle subdomains 5 years ago
Michael 9ee525a006
Fix shadowing warnings 5 years ago
Michael 3a8715d8e4
Fix introset tests 5 years ago
Michael 98e691f315
Tidy up more parts of the service/ directory 5 years ago
Michael e33a33635c
Remove usage of raw new from service classes 5 years ago
michael-loki 0195152e05 Allow builds on MSVC (#518)
* Import cxxopts to replace getopts usage

* Add visual studio build things

* Fixup abseil build parts

* Replace __attribute__((unused)) with ABSL_ATTRIBUTE_UNUSED

* Fixup minor windows build issues

* Replace getopts usage

* Temporarily fixup .rc files

* More minor windows fixes

* Get a working build

* Revert .rc files

* Revert changes to nodedb
5 years ago
Michael 3b5d49e0f8 MetricTank metric collector 5 years ago
Michael 544c5f9b61 Move metrics publishers to their own directory 5 years ago
Jeff b25b84e672
Merge pull request #514 from majestrate/master
fix integration tests
5 years ago
Jeff Becker c26145f70e
* fix up integration tests
* make recursive router lookup backtrack
5 years ago
Rick V b1fa597fa0
include what i use 5 years ago
Jeff Becker 20e398b684
fix exit info 5 years ago
Jeff Becker 2edf1da819
add more android stuff 5 years ago
Jeff Becker ac69213dd7
unit tests for llarp_ev_pkt_pipe 5 years ago
Jeff Becker e178a70929
use shared_ptr for event loop 5 years ago
Jeff Becker c910a2a2fb
more 5 years ago
Michael efb61da56a
Tidy up libabyss test 5 years ago
Michael 25f10d5b11
Fix more address sanitiser issues 5 years ago
Michael 6b5a688e08
Fix Catalog.Iterator test failure 5 years ago
Michael 561b997c93
Move IWP code to its own directory 5 years ago
Michael 17b39b0ed4
Move UTP code to its own directory 5 years ago
Jeff Becker 230e84c742
make signing work 5 years ago
Jeff Becker e08986e457
fix previous commit 5 years ago
Jeff Becker c931ac069f
add AAAA records that return SIIT addresses 5 years ago
Jeff Becker 3a4d8f16a7
more 5 years ago
Michael 8f0f6dde9d
Include What You Use 5 years ago
Michael f2c5d32399
Metric collection subsystem 5 years ago
Michael acfff4ca5c
Threading structures for metrics 5 years ago
Rick V abb9284167
add sun link libs 5 years ago
Rick V 8443c5ab8c
Support abseil on i686-pc-winnt-gnu 5 years ago
Jeff Becker e042fadf18
forgot test 5 years ago
Jeff Becker 990049f423
make rpc do basic auth and shit like that 5 years ago
Ryan Tharp 75c7c12502 fix linux gcc 7.3 issues, feeling like #include <condition_variable> should be in one of the threading headers tho 5 years ago
Jeff 1a09a12ee0
Merge branch 'staging' into absl_mutex 5 years ago
Jeff Becker b245453ef6
fix unit test 5 years ago
Michael 61f3273dc4
Add threading annotations and fix potential deadlocks 5 years ago
Michael c5a129ddff
Convert to use abseil synchronisation primitives 5 years ago
Michael 31441b46dc
Convert from rapidjson to use nlohmann::json 5 years ago
Jeff Becker 71302ee48b
Merge remote-tracking branch 'origin/staging' into fix-libabyss-352 5 years ago
Jeff Becker f8d6becce8
make whitelist happy 5 years ago
Jeff Becker ef13ec7499
Merge remote-tracking branch 'origin/staging' into staging 5 years ago
Michael e6e19369e9
Create Printer - A general-purpose, stateful printer class 5 years ago
Michael 95a5c386fe
Initial type trait work 5 years ago
Michael b80ecfa4d6
Use string_view for string_view 5 years ago
Michael 13a9f65520
Fully define interface for dht::Context 5 years ago
Michael 4132f883a7
Make libabyss mandatory 5 years ago
Jeff Becker 445ed05b32
make format 5 years ago
Michael a0125ffe86
Move abyss/json to llarp/util/json 5 years ago
Michael 048fa83c39
Finish replacement of Router with AbstractRouter 5 years ago
Jeff 6144a888c9
Merge pull request #299 from michael-loki/cmake_refactor
Refactor CMakeLists into distinct directories
5 years ago
Michael ebf2800c3f Fixup windows 5 years ago
Ryan Tharp 5cb15d3a23 fix llvm compile 5 years ago
Michael 656843e9a3
Fix issues on debian 5 years ago
Michael 342cdaddd0
Add support for gtest_add_tests 5 years ago
Michael 1aeacb0043
Refactor CMakeLists into distinct directories 5 years ago
Jeff Becker 46222df421
refactor 5 years ago
Jeff Becker e1fceb3636
fix it (again) 5 years ago
Jeff 1369c3b23c
Merge pull request #283 from despair86/dev
more windows fixes
5 years ago
Rick V 4c19f562f0
A compromise for C++17 ports.
Remove abseil build config for such targets.
Include headers (which should fall through by definition).
Macintosh can go fuck itself.
5 years ago
Rick V 72d0720da0
use c++17 stl on windows
While the absl:: namespace is aliased to std:: in a
standard win32 build, it also needlessly adds the
library to the build process, only to discard most
of it at link time. This also makes the distinction
between Abseil STL and G++ STL more explicit, to avoid
some forms of confusion.

From the product page:
"...We think not: if you look at the preprocessor conditional
structure in our string_view.h you'll see that we are trying
to identify whether your C++ installation has std::string_view.
If you do, absl::string_view is defined only as an alias to the
standard type. If you don't, you get a C++11/C++14 compatible
implementation of the type. This means you can adopt Abseil,
and for types we are b you can use the type from the absl
namespace. As soon as your project is built with the appropriate
compiler/standard library version, we'll fall away and leave you
with the standard type, albeit spelled funny. Better: as soon as
you know that your project will only build with the appropriate
language version you can run tools that we will provide to change
the places that refer to absl::string_view to spell it std::string_view
-- since those are the same type, this is safe to do, even across
API boundaries.

So, one reason you might want to adopt Abseil: early access to facilities
from upcoming C++ standard library releases, with a clear migration path."
5 years ago
Rick V ea7301fecf
finally unfuck windows bits 5 years ago
Rick V 69189214e0
rebase on current upstream staging 5 years ago
Rick V 3931b7d9d7
implement missing libabyss functionality
remove some finished TODOs
5 years ago
Rick V 7f52c9eae7
restore gtest win32 patch (stripped during gtest rebase)
enable lokinet shared library on win32

TODO: define an API to expose from this library
currently, it resorts to exporting *everything*
including system implementation details that otherwise
should remain hidden out of sight
(i.e. the winsock2 load stubs for new socket API, or entire libstdc++ classes!)
5 years ago
Rick V f277f368a1
win32 g++ is set to c++17 by default, so we use the _real_ string_view class 5 years ago
Michael 6d8d910aff
Refactor and add tests for bits.hpp 5 years ago
Michael 729cd045f1
Convert llarp::Router into an abstract base class 5 years ago
Ryan Tharp 5ab048c95d macos llvm fix 5 years ago
Ryan Tharp 5769e5c716
Merge pull request #259 from michael-loki/more_dht_tests
More dht tests
5 years ago
Ryan Tharp 6446074881
Merge pull request #267 from michael-loki/abseil
Import abseil LTS 20181200
5 years ago