path: root/src
AgeCommit message (Collapse)Author
2019-10-29pq: include pq.h in distDaniel Golle
Fixes commit e3e21acb ("libgnunetpq API change to fix #5733") Signed-off-by: Daniel Golle <>
2019-10-27portability fix.ng0
2019-10-27Merge branch 'master' of
2019-10-27portability fix, use = instead of == with testng0
2019-10-27fix removal of file for make distSchanzenbach, Martin
2019-10-25fix syntaxng0
2019-10-25follow-up to win32 removal.ng0
2019-10-23remove never working setuid helper code from the build-system.ng0
refer to the Changelog for a longer reason. In conclusion, this is what people expect, this is what Package Managers patch away for portability, and we can't use install(1) for this because it's not a portable tool.
2019-10-23fix typong0
2019-10-23Merge branch 'master' of
2019-10-23first test commit to make sudo + sh scripts obsolete.ng0
install(1) is too unportable to handle this job so we take the content of the scripts.
2019-10-23start rest per userSchanzenbach, Martin check if user 'nobody' exists and return 77 if not.ng0
2019-10-17Add support for doas.ng0
2019-10-16this comment seems to be not true; tarfile will at least notng0
require tar(1) or any other tool, if at all other modules are required.
2019-10-14readd reclaimSchanzenbach, Martin
2019-10-12format pythonng0
2019-10-12yapf format.ng0
2019-10-11add GNUNET_PQ_reconnect_if_downChristian Grothoff
2019-10-11libgnunetpq API change to fix #5733Christian Grothoff
2019-10-11we probably want to actually test the syncSchanzenbach, Martin
2019-10-11fix non deterministic testSchanzenbach, Martin
2019-10-11add bug refSchanzenbach, Martin
2019-10-11make test compatible with macosSchanzenbach, Martin
2019-10-11add namestore rest testsSchanzenbach, Martin
2019-10-11fix rest; uncrustifySchanzenbach, Martin
2019-10-11fix changes in identitiesSchanzenbach, Martin
2019-10-09fix primary issue from #5907Christian Grothoff
2019-10-08allow to disable IP scan w/ HOLE_EXTERNAL; thanks Corvus CoraxSchanzenbach, Martin
2019-10-08use correct plugin name; thanks Corvus CoraxSchanzenbach, Martin
2019-10-07indentSchanzenbach, Martin
2019-10-07Removed rest files, updated makefileAndreas Ebner
2019-10-07Renamed credential service to abd, replaced all related functions, ↵Andreas Ebner
parameters, etc
2019-10-07Proper print on add callback, fixed return value in .._start, both cases ↵Andreas Ebner
require same handling therefore same return value
2019-10-07Fixed testAndreas Ebner
2019-10-07Test cleanup/fix:Andreas Ebner
- added missing "- -" to collect for macOS - replaced 'import $SIGNED' with 'import=$SIGNED' to match all other parameters and better visibility
2019-10-07Cleanup TODOs, bugfix in cleanup and start of bidirectional chain resolution:Andreas Ebner
- removed and/or implemented all remaining TODOs - fixed a bug in cleanup_handle() which caused to not cleanup correctly when a solution was prematurely found - delegation_chain_bw/fw_resolution_start() not has a return value to indicate whether a solution was prematurely found - cleaned up the test_... files (an additional cleanup commit might follow)
2019-10-07Bugfixes, changed test reporting behavior, modified intermediate result ↵Andreas Ebner
reporting: - fixed a memory error when serializing the delegations - all tests now handle the returned error code from the gnunet-credential.c via "ret" variable - intermediate reporting excluded during collect message - intermediate reporting now contains the direction (bw/fw)
2019-10-07Introduction of intermediate result reporting, removed some stuff, new test:Andreas Ebner
- new message, message type and api function to handle intermediate result reporting - removed GNUNET_SIGNATURE_PURPOSE_CREDENTIAL completely and the one usage that was still around - new test: AND with both parts having a bidirectional forward match
2019-10-07Cleanup and fixes regarding bidirectional search and the files:Andreas Ebner
- removed set_entries_head/tail from DQ entry (no longer needed, using vrh->dsq_head/tail for everything) - removed no longer required vrh->root_set (not working with forward search anyways as there are multiple root sets) - implemented cleanup for the dq entries in the queue_entries_head list of ds entries - added the part in cleanup handling the subject_attribute/_len to might help solve the last valgrind error (didnt work) - changed the way the ds_entry are inserted in the vrh->dsq_.. list: Now after creation of EVERY ds_entry it is inserted --> This solved an error resulting from uncanceled lookup_response handles - changed the files: + "- -" at the end of the collect statement, required for MacOS + fixed cleanup at the end to correctly remove entries from GNS
2019-10-07Bidirectional implementation finished, more complex tests for bidirectional, ↵Andreas Ebner
cleanup fix, todos done: - fixed cleanup to not cause errors and uncommented it again - added new tests for AND, linked roles and fw/bw - fixed an older bug to make test work - replaced bidirectional matching of bw with unresolved_attribute.. (because it contains all the subject attributes/roles) - introduced extra function for bidirectional match handling (is the same for bw and fw and pretty long) - commandline: if not specified to use bw or fw search -> assume it's bidirectional - moved the bidirecitonal matching list to vrh and removed it from being global - valgrind on service (one error remaining, to be solved in future commits) - use the vrh->dsq_head/tail for the cleanup stuff
2019-10-07Unfinished implementation of bidirectional search:Andreas Ebner
- queue to add all currently found nodes - backward_resolution implementation of what to do when you find a matching one - new test for bidirecitonal search - still a lot to do / still has a lot of prints and comments that need to be removed
2019-10-07Removed GNUNET_CREDENTIAL_Credential, new cmdline parameters, formatting:Andreas Ebner
- removed all files and functions related to GNUNET_CREDENTIAL_Credential, has been replaced by GNUNET_CREDENTIAL_Delegate - renamed cmline parameter 'credential' - added cmline parameter for backward/forward search and a related enum - added cmline parameter to store private delegates - only private delegates are used as start/end of the search algorithm (set to vrh in collect) - run valgrind: no memory exceptions - run clang-format
2019-10-07Clean up and renamingAndreas Ebner
- renamed a lot of variables/functions that no longer serve credential but delegate - correct printouts likewise - cleaned up to use credential service issuer side storage - removed credential related parameters from VerifyRequestHandle struct
2019-10-07Updated fw/bw algo, collect, and verify (still some things left to do)Andreas Ebner
- collect/verify now use delegate instead of credential - parameter in api messages to indicate the direction of the resolution - fw algo sets delegation_chain and ref_count on solution find - namestore lookup instead of iteration to get all delegates from starting/goal subject
2019-10-07Run clang format over some files, experimental implementation of forward ↵Andreas Ebner
2019-10-07Cleanup, additional input checks, renaming, simplification:Andreas Ebner
- introducing own GNUNET_SIGNATURE_PURPOSE_DELEGATE - renaming of cred/crd in delegation_misc.c - renamed extension cmd para to import - changed subject key/attr parsing from memcpy/malloc to strtok - only allow to create delegates to expire absolute not relative (prevent reusing created delegation signatures) - check subject key and reuse expiration of import/signed delegation - replaced strdup() part of delegation_misc.c and credential_serialization.c with pointers - uncommented return after detection of unverifyable signatures
2019-10-07Implemented delegate sign and store function for GNS entries:Andreas Ebner
- functions to store and sign delegates (all types) including serialization/string_to_value/.. - solved (almost) all TODOs - some renaming and cleanup in gnunet-credential.c - valgrind checked - test file adapted accordingly
2019-10-07Handle all credential storage via credential service, prepared for subject ↵Andreas Ebner
side storage - new commandline parameters - new gns record type: DELEGATE for subject side storage - credential connection to namestore - store all credentials via credential service (replacing namestore) - stable, but experimental implementation, atm just using existing methods, next step: introduce own methods and replace/rename existing variables
2019-10-06more dead filesChristian Grothoff