aboutsummaryrefslogtreecommitdiff
path: root/src/credential
Commit message (Collapse)AuthorAge
* Renamed credential service to abd, replaced all related functions, ↵Andreas Ebner2019-10-07
| | | | parameters, etc
* Proper print on add callback, fixed return value in .._start, both cases ↵Andreas Ebner2019-10-07
| | | | require same handling therefore same return value
* Fixed testAndreas Ebner2019-10-07
|
* Test cleanup/fix:Andreas Ebner2019-10-07
| | | | | - added missing "- -" to collect for macOS - replaced 'import $SIGNED' with 'import=$SIGNED' to match all other parameters and better visibility
* Cleanup TODOs, bugfix in cleanup and start of bidirectional chain resolution:Andreas Ebner2019-10-07
| | | | | | | - 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)
* Bugfixes, changed test reporting behavior, modified intermediate result ↵Andreas Ebner2019-10-07
| | | | | | | | | 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)
* Introduction of intermediate result reporting, removed some stuff, new test:Andreas Ebner2019-10-07
| | | | | | - 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
* Cleanup and fixes regarding bidirectional search and the test.sh files:Andreas Ebner2019-10-07
| | | | | | | | | | | | - 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 test_credential...bi..sh files: + "- -" at the end of the collect statement, required for MacOS + fixed cleanup at the end to correctly remove entries from GNS
* Bidirectional implementation finished, more complex tests for bidirectional, ↵Andreas Ebner2019-10-07
| | | | | | | | | | | | | | 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 ..own_and2.sh 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
* Unfinished implementation of bidirectional search:Andreas Ebner2019-10-07
| | | | | | | - 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
* Removed GNUNET_CREDENTIAL_Credential, new cmdline parameters, formatting:Andreas Ebner2019-10-07
| | | | | | | | | | - 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
* Clean up and renamingAndreas Ebner2019-10-07
| | | | | | | - renamed a lot of variables/functions that no longer serve credential but delegate - correct printouts likewise - cleaned up test_credential_own.sh to use credential service issuer side storage - removed credential related parameters from VerifyRequestHandle struct
* Updated fw/bw algo, collect, and verify (still some things left to do)Andreas Ebner2019-10-07
| | | | | | | - 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
* Run clang format over some files, experimental implementation of forward ↵Andreas Ebner2019-10-07
| | | | algorithm
* Cleanup, additional input checks, renaming, simplification:Andreas Ebner2019-10-07
| | | | | | | | | | | - 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
* Implemented delegate sign and store function for GNS entries:Andreas Ebner2019-10-07
| | | | | | | | - 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
* Handle all credential storage via credential service, prepared for subject ↵Andreas Ebner2019-10-07
| | | | | | | | | | 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
* global reindent, now with uncrustify hook enabledChristian Grothoff2019-10-05
|
* plibc removal: sscanf, win32 socket correctionsng02019-09-09
|
* uncrustify as demanded.ng02019-09-08
|
* Use pkg-config to check for MHDDavid Barksdale2019-08-27
|
* memcmp() -> GNUNET_memcmp(), first takeJulius Bünger2019-04-26
|
* fix memleaksSchanzenbach, Martin2019-04-16
|
* CREDENTIAL: Fix build with new APIsSchanzenbach, Martin2019-04-15
|
* include credential_*.h in distDaniel Golle2019-04-05
|
* move credential makefile defsSchanzenbach, Martin2019-03-12
|
* move disfunc credentialSchanzenbach, Martin2019-03-12
|
* bashismng02019-03-09
|
* package credential.hChristian Grothoff2019-02-28
|
* src: for every AGPL3.0 file, add SPDX identifier.ng02019-01-14
|
* actually fix ftbfsSchanzenbach, Martin2018-09-27
|
* AUTOSTART renamed into START_ON_DEMAND (#4547a)psyc://loupsycedyglgamf.onion/~lynX1984-04-04
|
* rename USER_SERVICE into RUN_PER_USER. thx, tg (#4548a)psyc://loupsycedyglgamf.onion/~lynX2018-06-23
|
* paragraph for gnunet devs that don't know how to use the webpsyc://loupsycedyglgamf.onion/~lynX2018-06-07
|
* glitch in the license text detected by hyazinthe, thank you!psyc://loupsycedyglgamf.onion/~lynX2018-06-07
|
* first batch of license fixes (boring)psyc://loupsycedyglgamf.onion/~lynX2018-06-05
|
* +Nils Gillmann2018-05-19
| | | | Signed-off-by: Nils Gillmann <ng0@n0.is>
* get rid of plain memcpy callsChristian Grothoff2018-05-13
|
* Switch to $GNUNET_TMP in all configuration files.Nils Gillmann2018-05-06
| | | | Signed-off-by: Nils Gillmann <ng0@n0.is>
* add option to disable namecache, add velocity calculation and delay ↵Christian Grothoff2018-04-29
| | | | correction to zonemaster, fix some ftbfs from recent NAMESTORE API change
* bugfixesSchanzenbach, Martin2018-01-08
|
* -fix testSchanzenbach, Martin2018-01-05
|
* -cleanup doc; fixesSchanzenbach, Martin2018-01-04
|
* -fix DEBUG outputSchanzenbach, Martin2017-07-03
|
* -fix 0-termSchanzenbach, Martin2017-06-23
|
* -fix idpSchanzenbach, Martin2017-05-30
|
* -add policy record typeSchanzenbach, Martin2017-05-18
|
* -fixSchanzenbach, Martin2017-04-24
|
* -fix API changesSchanzenbach, Martin2017-04-21
|
* - merge; service API changeSchanzenbach, Martin2017-01-20
|