oweals/gnunet.git
4 years agouse correct plugin name; thanks Corvus Corax
Schanzenbach, Martin [Tue, 8 Oct 2019 19:53:23 +0000 (21:53 +0200)]
use correct plugin name; thanks Corvus Corax

4 years agoindent
Schanzenbach, Martin [Mon, 7 Oct 2019 10:44:43 +0000 (12:44 +0200)]
indent

4 years agoRemoved rest files, updated makefile
Andreas Ebner [Mon, 7 Oct 2019 09:51:48 +0000 (11:51 +0200)]
Removed rest files, updated makefile

4 years agoRenamed credential service to abd, replaced all related functions, parameters, etc
Andreas Ebner [Mon, 7 Oct 2019 09:48:07 +0000 (11:48 +0200)]
Renamed credential service to abd, replaced all related functions, parameters, etc

4 years agoProper print on add callback, fixed return value in .._start, both cases require...
Andreas Ebner [Sun, 6 Oct 2019 10:57:52 +0000 (12:57 +0200)]
Proper print on add callback, fixed return value in .._start, both cases require same handling therefore same return value

4 years agoFixed test
Andreas Ebner [Mon, 23 Sep 2019 09:27:54 +0000 (11:27 +0200)]
Fixed test

4 years agoTest cleanup/fix:
Andreas Ebner [Fri, 20 Sep 2019 09:32:00 +0000 (11:32 +0200)]
Test cleanup/fix:

- added missing "- -" to collect for macOS
- replaced 'import $SIGNED' with 'import=$SIGNED' to match all other parameters and better visibility

4 years agoCleanup TODOs, bugfix in cleanup and start of bidirectional chain resolution:
Andreas Ebner [Fri, 20 Sep 2019 08:49:02 +0000 (10:49 +0200)]
Cleanup TODOs, bugfix in cleanup and start of bidirectional chain resolution:
- 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)

4 years agoBugfixes, changed test reporting behavior, modified intermediate result reporting:
Andreas Ebner [Sat, 14 Sep 2019 14:58:39 +0000 (16:58 +0200)]
Bugfixes, changed test reporting behavior, modified intermediate result 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)

4 years agoIntroduction of intermediate result reporting, removed some stuff, new test:
Andreas Ebner [Sun, 25 Aug 2019 10:23:33 +0000 (12:23 +0200)]
Introduction of intermediate result reporting, removed some stuff, new test:

- 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

4 years agoCleanup and fixes regarding bidirectional search and the test.sh files:
Andreas Ebner [Wed, 21 Aug 2019 15:45:02 +0000 (17:45 +0200)]
Cleanup and fixes regarding bidirectional search and the test.sh files:

- 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

4 years agoBidirectional implementation finished, more complex tests for bidirectional, cleanup...
Andreas Ebner [Sun, 18 Aug 2019 11:46:05 +0000 (13:46 +0200)]
Bidirectional implementation finished, more complex tests for bidirectional, 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

4 years agoUnfinished implementation of bidirectional search:
Andreas Ebner [Sun, 11 Aug 2019 15:04:00 +0000 (17:04 +0200)]
Unfinished implementation of bidirectional search:

- 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

4 years agoRemoved GNUNET_CREDENTIAL_Credential, new cmdline parameters, formatting:
Andreas Ebner [Tue, 6 Aug 2019 14:17:33 +0000 (16:17 +0200)]
Removed GNUNET_CREDENTIAL_Credential, new cmdline parameters, formatting:

- 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

4 years agoClean up and renaming
Andreas Ebner [Sun, 4 Aug 2019 11:52:03 +0000 (13:52 +0200)]
Clean up and renaming

- 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

4 years agoUpdated fw/bw algo, collect, and verify (still some things left to do)
Andreas Ebner [Sat, 3 Aug 2019 11:01:22 +0000 (13:01 +0200)]
Updated fw/bw algo, collect, and verify (still some things left to do)

- 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

4 years agoRun clang format over some files, experimental implementation of forward algorithm
Andreas Ebner [Wed, 24 Jul 2019 14:29:32 +0000 (16:29 +0200)]
Run clang format over some files, experimental implementation of forward algorithm

4 years agoCleanup, additional input checks, renaming, simplification:
Andreas Ebner [Tue, 9 Jul 2019 15:53:33 +0000 (17:53 +0200)]
Cleanup, additional input checks, renaming, simplification:

- 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

4 years agoImplemented delegate sign and store function for GNS entries:
Andreas Ebner [Sun, 7 Jul 2019 13:04:40 +0000 (15:04 +0200)]
Implemented delegate sign and store function for GNS entries:

- 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

4 years agoHandle all credential storage via credential service, prepared for subject side storage
Andreas Ebner [Tue, 25 Jun 2019 13:21:12 +0000 (15:21 +0200)]
Handle all credential storage via credential service, prepared for subject 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

4 years agomore dead files
Christian Grothoff [Sun, 6 Oct 2019 19:04:19 +0000 (21:04 +0200)]
more dead files

4 years agoremove dead, obsolete or never-to-become ATS logic (DCE)
Christian Grothoff [Sun, 6 Oct 2019 19:03:33 +0000 (21:03 +0200)]
remove dead, obsolete or never-to-become ATS logic (DCE)

4 years agodce
Christian Grothoff [Sun, 6 Oct 2019 09:48:10 +0000 (11:48 +0200)]
dce

4 years agosave nick 0-term byte
Schanzenbach, Martin [Sun, 6 Oct 2019 02:32:15 +0000 (04:32 +0200)]
save nick 0-term byte

4 years agonick must be 0-terminated else resolver will discard/break
Schanzenbach, Martin [Sat, 5 Oct 2019 20:45:42 +0000 (22:45 +0200)]
nick must be 0-terminated else resolver will discard/break

4 years agochange define
Schanzenbach, Martin [Sat, 5 Oct 2019 20:31:39 +0000 (22:31 +0200)]
change define

4 years agoglobal reindent, now with uncrustify hook enabled
Christian Grothoff [Sat, 5 Oct 2019 13:09:28 +0000 (15:09 +0200)]
global reindent, now with uncrustify hook enabled

4 years agoreduce scope
Christian Grothoff [Sat, 5 Oct 2019 13:01:15 +0000 (15:01 +0200)]
reduce scope

4 years agoreduce scope
Christian Grothoff [Sat, 5 Oct 2019 13:00:27 +0000 (15:00 +0200)]
reduce scope

4 years agoreduce scope
Christian Grothoff [Sat, 5 Oct 2019 13:00:11 +0000 (15:00 +0200)]
reduce scope

4 years agoreduce scope
Christian Grothoff [Sat, 5 Oct 2019 12:59:18 +0000 (14:59 +0200)]
reduce scope

4 years agoreduce scope
Christian Grothoff [Sat, 5 Oct 2019 12:58:44 +0000 (14:58 +0200)]
reduce scope

4 years agofix hook to only apply to C code
Christian Grothoff [Sat, 5 Oct 2019 12:56:50 +0000 (14:56 +0200)]
fix hook to only apply to C code

4 years agofix hook to only apply to C code
Christian Grothoff [Sat, 5 Oct 2019 12:55:29 +0000 (14:55 +0200)]
fix hook to only apply to C code

4 years agofix hook to only apply to C code
Christian Grothoff [Sat, 5 Oct 2019 12:55:12 +0000 (14:55 +0200)]
fix hook to only apply to C code

4 years agoreduce scope
Christian Grothoff [Sat, 5 Oct 2019 12:45:20 +0000 (14:45 +0200)]
reduce scope

4 years agofix path
Christian Grothoff [Sat, 5 Oct 2019 12:44:36 +0000 (14:44 +0200)]
fix path

4 years agostyle fix
Christian Grothoff [Sat, 5 Oct 2019 12:43:15 +0000 (14:43 +0200)]
style fix

4 years agouncrustify integration into bootstrap
Christian Grothoff [Sat, 5 Oct 2019 12:42:30 +0000 (14:42 +0200)]
uncrustify integration into bootstrap

4 years agointendation
Schanzenbach, Martin [Thu, 3 Oct 2019 16:56:39 +0000 (18:56 +0200)]
intendation

4 years agoGNS: preparing protocol change in GNS for v12
Schanzenbach, Martin [Thu, 3 Oct 2019 16:55:47 +0000 (18:55 +0200)]
GNS: preparing protocol change in GNS for v12

4 years agoadd precommit hook example
ng0 [Sun, 29 Sep 2019 10:30:10 +0000 (10:30 +0000)]
add precommit hook example

4 years agoMerge branch 'master' of ssh://git.gnunet.org/gnunet
xrs [Sat, 28 Sep 2019 17:11:33 +0000 (19:11 +0200)]
Merge branch 'master' of ssh://git.gnunet.org/gnunet

4 years agoadd contrib/alpine
xrs [Sat, 28 Sep 2019 17:11:28 +0000 (19:11 +0200)]
add contrib/alpine

4 years agohandle arm -s completion nicely via signaling pipe
Christian Grothoff [Fri, 27 Sep 2019 22:56:33 +0000 (00:56 +0200)]
handle arm -s completion nicely via signaling pipe

4 years agodo not attempt name resolution or terminating a peer in gnunet-arm if the peer is...
Christian Grothoff [Fri, 27 Sep 2019 21:20:33 +0000 (23:20 +0200)]
do not attempt name resolution or terminating a peer in gnunet-arm if the peer is not running

4 years agoimplementing GNUNET_CLIENT_test() to check for service operating
Christian Grothoff [Fri, 27 Sep 2019 21:12:21 +0000 (23:12 +0200)]
implementing GNUNET_CLIENT_test() to check for service operating

4 years agoindent
Christian Grothoff [Fri, 27 Sep 2019 20:33:50 +0000 (22:33 +0200)]
indent

4 years agoprint service summary
Florian Dold [Tue, 24 Sep 2019 17:04:54 +0000 (19:04 +0200)]
print service summary

4 years agoadd stopping state
Florian Dold [Tue, 24 Sep 2019 16:21:53 +0000 (18:21 +0200)]
add stopping state

4 years agoimplement extended status information for arm
Florian Dold [Tue, 24 Sep 2019 15:59:18 +0000 (17:59 +0200)]
implement extended status information for arm

4 years agodocs: fix typo 'priviledge'→'privilege'
grindhold [Sat, 21 Sep 2019 11:26:37 +0000 (13:26 +0200)]
docs: fix typo 'priviledge'→'privilege'

4 years agoindenting
Christian Grothoff [Thu, 19 Sep 2019 15:19:49 +0000 (17:19 +0200)]
indenting

4 years agogracely handle missing PKCE params in token request
Schanzenbach, Martin [Tue, 17 Sep 2019 14:10:56 +0000 (16:10 +0200)]
gracely handle missing PKCE params in token request

4 years agodo not indent labels
Christian Grothoff [Mon, 16 Sep 2019 19:34:38 +0000 (21:34 +0200)]
do not indent labels

4 years agoreindentation
Christian Grothoff [Mon, 16 Sep 2019 19:26:25 +0000 (21:26 +0200)]
reindentation

4 years agoreindentation
Christian Grothoff [Mon, 16 Sep 2019 19:26:06 +0000 (21:26 +0200)]
reindentation

4 years agoreindentation
Christian Grothoff [Mon, 16 Sep 2019 19:22:12 +0000 (21:22 +0200)]
reindentation

4 years agoconfigure: remove checks for CXX and CPP. See ChangeLog.
ng0 [Mon, 16 Sep 2019 12:14:05 +0000 (12:14 +0000)]
configure: remove checks for CXX and CPP. See ChangeLog.

4 years agolint: Remove checkbashisms.pl, assume it is in PATH.
ng0 [Mon, 16 Sep 2019 06:59:58 +0000 (06:59 +0000)]
lint: Remove checkbashisms.pl, assume it is in PATH.

4 years agouse configuration from GNU Taler for uncrustify
Christian Grothoff [Sun, 15 Sep 2019 08:23:55 +0000 (10:23 +0200)]
use configuration from GNU Taler for uncrustify

4 years agoAUTHORS: correct license statement (will drop last gpl2 file in lint/ soon).
ng0 [Sat, 14 Sep 2019 19:26:30 +0000 (19:26 +0000)]
AUTHORS: correct license statement (will drop last gpl2 file in lint/ soon).

4 years agoremove terminos.h, it seems like a typo of termios.h and neither of them are used...
ng0 [Wed, 11 Sep 2019 14:25:01 +0000 (14:25 +0000)]
remove terminos.h, it seems like a typo of termios.h and neither of them are used in the sourcecode.

4 years agoalign.m4: Add stdlib.h explicitly to make the test pass on NetBSD.
ng0 [Wed, 11 Sep 2019 13:21:55 +0000 (13:21 +0000)]
align.m4: Add stdlib.h explicitly to make the test pass on NetBSD.
Should not be problematic, every system we support right now has a
stdlib.

4 years agoconfigure: remove mingw conditions, replace one gcc with $CC.
ng0 [Wed, 11 Sep 2019 12:42:35 +0000 (12:42 +0000)]
configure: remove mingw conditions, replace one gcc with $CC.

4 years agoAdd buildtarget to netbsd
ng0 [Wed, 11 Sep 2019 11:22:18 +0000 (11:22 +0000)]
Add buildtarget to netbsd

4 years agoconfigure: remove windows specific checks.
ng0 [Wed, 11 Sep 2019 11:18:25 +0000 (11:18 +0000)]
configure: remove windows specific checks.

4 years agocontrib: gnunet_janitor, terminate: remove win32 functionalities.
ng0 [Wed, 11 Sep 2019 10:56:20 +0000 (10:56 +0000)]
contrib: gnunet_janitor, terminate: remove win32 functionalities.

This commit is questionable, but since I removed win32 code this
code no longer has any purpose.

4 years agosmall README changes.
ng0 [Tue, 10 Sep 2019 18:15:04 +0000 (18:15 +0000)]
small README changes.

4 years agoremove CYGWIN codeblocks, drop vendored Windows openvpn, drop win32 specific files.
ng0 [Tue, 10 Sep 2019 16:59:32 +0000 (16:59 +0000)]
remove CYGWIN codeblocks, drop vendored Windows openvpn, drop win32 specific files.

configures and builds okay.
testsuite wasn't checked, will be checked.

diff including the plibc removal is now around 14370 lines of code less.

4 years agoRemove win32 and cygwin support
ng0 [Mon, 9 Sep 2019 19:17:18 +0000 (19:17 +0000)]
Remove win32 and cygwin support

4 years agoaccidentally deleted
Schanzenbach, Martin [Mon, 9 Sep 2019 13:01:46 +0000 (15:01 +0200)]
accidentally deleted

4 years agofix flag detection variables
Schanzenbach, Martin [Mon, 9 Sep 2019 12:59:09 +0000 (14:59 +0200)]
fix flag detection variables

4 years agogcc does strange things with -Wno-*
Schanzenbach, Martin [Mon, 9 Sep 2019 12:43:29 +0000 (14:43 +0200)]
gcc does strange things with -Wno-*

4 years agoadd werror to check
Schanzenbach, Martin [Mon, 9 Sep 2019 12:21:54 +0000 (14:21 +0200)]
add werror to check

4 years agoattempt fix flag detection again
Schanzenbach, Martin [Mon, 9 Sep 2019 12:11:38 +0000 (14:11 +0200)]
attempt fix flag detection again

4 years agoMerge branch 'master' of gnunet.org:gnunet
ng0 [Mon, 9 Sep 2019 12:11:15 +0000 (12:11 +0000)]
Merge branch 'master' of gnunet.org:gnunet

4 years agotypo
ng0 [Mon, 9 Sep 2019 12:11:06 +0000 (12:11 +0000)]
typo

4 years agoattempt fix flag detection
Schanzenbach, Martin [Mon, 9 Sep 2019 11:48:49 +0000 (13:48 +0200)]
attempt fix flag detection

4 years agoSTAT->stat
ng0 [Mon, 9 Sep 2019 11:42:11 +0000 (11:42 +0000)]
STAT->stat

4 years agotypo
ng0 [Mon, 9 Sep 2019 11:29:02 +0000 (11:29 +0000)]
typo

4 years agoutil/disk.c: fix failure to build
ng0 [Mon, 9 Sep 2019 11:18:58 +0000 (11:18 +0000)]
util/disk.c: fix failure to build

4 years agoplibc: win32 related, socket
ng0 [Mon, 9 Sep 2019 10:19:12 +0000 (10:19 +0000)]
plibc: win32 related, socket

4 years agoplibc removal: gns/w32nsp.c: sockets.
ng0 [Mon, 9 Sep 2019 10:04:40 +0000 (10:04 +0000)]
plibc removal: gns/w32nsp.c: sockets.

4 years agoplibc removal: sscanf, win32 socket corrections
ng0 [Mon, 9 Sep 2019 09:55:18 +0000 (09:55 +0000)]
plibc removal: sscanf, win32 socket corrections

4 years agoplibc removal: ACCESS->access
ng0 [Mon, 9 Sep 2019 08:15:56 +0000 (08:15 +0000)]
plibc removal: ACCESS->access

4 years agoplibc removal (CLOSE->close)
ng0 [Mon, 9 Sep 2019 08:10:49 +0000 (08:10 +0000)]
plibc removal (CLOSE->close)

4 years agoplibc removal: STRUCT_STAT64
ng0 [Mon, 9 Sep 2019 08:02:22 +0000 (08:02 +0000)]
plibc removal: STRUCT_STAT64

4 years agouncrustify as demanded.
ng0 [Sun, 8 Sep 2019 12:33:09 +0000 (12:33 +0000)]
uncrustify as demanded.

4 years agoreplace clang-format with uncrustify.
ng0 [Sun, 8 Sep 2019 12:29:31 +0000 (12:29 +0000)]
replace clang-format with uncrustify.

4 years agoMerge branch 'master' of gnunet.org:gnunet
ng0 [Sun, 8 Sep 2019 12:13:55 +0000 (12:13 +0000)]
Merge branch 'master' of gnunet.org:gnunet

4 years agoREADME: adjust dependencies and some fixes.
ng0 [Sun, 8 Sep 2019 12:13:36 +0000 (12:13 +0000)]
README: adjust dependencies and some fixes.

4 years agoupdate
Schanzenbach, Martin [Sun, 8 Sep 2019 08:50:37 +0000 (10:50 +0200)]
update

4 years agoMake services localizable
Alessio Vanni [Sat, 7 Sep 2019 11:18:07 +0000 (13:18 +0200)]
Make services localizable

Signed-off-by: Christian Grothoff <christian@grothoff.org>
4 years agognunet-bcd: OPEN->open
ng0 [Sat, 7 Sep 2019 09:57:04 +0000 (09:57 +0000)]
gnunet-bcd: OPEN->open

4 years agoutil/disk.c: STAT64->stat64
ng0 [Sat, 7 Sep 2019 09:35:12 +0000 (09:35 +0000)]
util/disk.c: STAT64->stat64

4 years agoconfigure: remove plibc check
ng0 [Sat, 7 Sep 2019 09:28:26 +0000 (09:28 +0000)]
configure: remove plibc check

4 years agodocumentation: remove plibc mention.
ng0 [Sat, 7 Sep 2019 09:25:05 +0000 (09:25 +0000)]
documentation: remove plibc mention.

4 years agofix variable names renamed by search and replace.
ng0 [Sat, 7 Sep 2019 09:16:45 +0000 (09:16 +0000)]
fix variable names renamed by search and replace.

4 years agotypo in header file for w32
ng0 [Sat, 7 Sep 2019 09:15:52 +0000 (09:15 +0000)]
typo in header file for w32