aboutsummaryrefslogtreecommitdiff
path: root/src/credential/gnunet-credential.c
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
* 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
* 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
* 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
|
* uncrustify as demanded.ng02019-09-08
|
* src: for every AGPL3.0 file, add SPDX identifier.ng02019-01-14
|
* 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
|
* bugfixesSchanzenbach, Martin2018-01-08
|
* -cleanup doc; fixesSchanzenbach, Martin2018-01-04
|
* -fix idpSchanzenbach, Martin2017-05-30
|
* -fix API changesSchanzenbach, Martin2017-04-21
|
* -change apiSchanzenbach, Martin2016-12-28
|
* -fixesSchanzenbach, Martin2016-12-18
|
* -fixes, prettifySchanzenbach, Martin2016-12-14
|
* -fixSchanzenbach, Martin2016-12-14
|
* -fix gns mq; fix serializerSchanzenbach, Martin2016-12-14
|
* -add serializerSchanzenbach, Martin2016-12-14
|
* - add simple verificationSchanzenbach, Martin2016-12-06
|
* -add expiration to credSchanzenbach, Martin2016-12-06
|
* -add simple testSchanzenbach, Martin2016-12-05
|
* -add issue testSchanzenbach, Martin2016-12-05
|
* - add verify and issue to cliSchanzenbach, Martin2016-12-02
|
* -cleanup cli toolSchanzenbach, Martin2016-12-02
|
* - add missing API; no implSchanzenbach, Martin2016-11-20
|
* - move towards verificationSchanzenbach, Martin2016-11-20
|
* add credentialMartin Schanzenbach2016-11-10